:root {
  --ink: #0b381d;
  --teal: #15803d;
  --teal-dark: #0f4c27;
  --teal-hover: #166534;
  --muted: #4b6354;
  --line: #bbf7d0;
  --bg: #f4fbf6;
  --gold: #ddb668;
  --gold-text: #8a6217;
  --card-bg: #ffffff;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: #203d38;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .45; cursor: not-allowed; }

/* Grid Layout */
.app {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

/* Sidebar */
aside {
  background: var(--teal-dark);
  color: #d7e9e2;
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.brand {
  font-size: 26px;
  color: white;
  font-weight: 750;
  letter-spacing: -1px;
}
.brand span { color: #dfbd75; }
.brand sup { font-size: 12px; color: #a1c4b8; margin-left: 4px; }
.subtitle {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 8px 0 25px;
  color: #a1c4b8;
}

.website-link {
  display: block;
  color: #e1c58c;
  font-size: 12px;
  text-decoration: none;
  margin: -10px 0 25px;
  padding: 8px 0;
}
.website-link:hover { text-decoration: underline; }

.nav {
  display: grid;
  gap: 8px;
}
.nav a, .nav button {
  border: 0;
  background: none;
  color: #c2dbd2;
  text-align: left;
  padding: 13px 15px;
  border-radius: 9px;
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 13px;
  text-decoration: none;
  transition: all .15s ease;
}
.nav a.active, .nav a:hover, .nav button.active, .nav button:hover {
  background: #28554c;
  color: white;
}
.nav i {
  font-style: normal;
  font-size: 17px;
  width: 22px;
  text-align: center;
}
.nav small {
  margin-left: auto;
  background: #d6b97a;
  color: #173b33;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
}

.aside-bottom {
  margin-top: auto;
  padding-top: 20px;
}

.conference-box {
  border: 1px solid #41685c;
  border-radius: 12px;
  padding: 16px;
  font-size: 11px;
  line-height: 1.7;
  margin-bottom: 20px;
  background: rgba(255,255,255,0.03);
}
.conference-box strong { color: white; font-size: 13px; display: block; margin-bottom: 3px; }
.conference-box span { color: #d7bd88; }

.profile-card {
  display: flex;
  gap: 12px;
  align-items: center;
  border-top: 1px solid #345d50;
  padding-top: 20px;
}
.avatar {
  border-radius: 50%;
  background: #dbe8dd;
  color: #214c3d;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.profile-card b {
  display: block;
  font-size: 12px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}
.profile-card small {
  display: block;
  color: #a0c0b1;
  font-size: 11px;
}

.sidebar-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
  font-size: 11px;
}
.sidebar-actions a {
  color: #b4d2c3;
}
.sidebar-actions a:hover {
  color: #dfbd75;
  text-decoration: underline;
}

/* Header */
main { min-width: 0; }
header {
  min-height: 75px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 42px;
  gap: 20px;
}
.header-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.header-breadcrumb strong { font-weight: 600; color: var(--ink); }
.header-breadcrumb span { color: var(--muted); }
.header-breadcrumb a { color: var(--teal); font-weight: 500; }
.header-breadcrumb a:hover { text-decoration: underline; }

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.badge-role {
  background: #e4f2e9;
  color: #276c47;
  font-size: 10px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.demo-pill {
  font-size: 10px;
  color: #886729;
  border: 1px solid #e7d9b9;
  padding: 5px 10px;
  border-radius: 20px;
  letter-spacing: .5px;
  background: #fffbf0;
}

/* Content */
.content {
  max-width: 1450px;
  margin: auto;
  padding: 34px 42px;
}

.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--teal);
  font-weight: 700;
  text-transform: uppercase;
}
h1 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.8px;
  margin: 6px 0 10px;
  color: var(--ink);
}
p {
  color: var(--muted);
  line-height: 1.65;
  margin-top: 0;
}

.welcome-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
  gap: 20px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 18px;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: all .15s ease;
}
.btn:hover { background: #f9fbf9; border-color: #c2d5ca; }
.btn.primary {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}
.btn.primary:hover {
  background: #0f5c52;
}
.btn.gold {
  background: #d6b97a;
  color: #173b33;
  border-color: #d6b97a;
}
.btn.gold:hover {
  background: #c8a864;
}
.btn.danger {
  background: #fdf2f2;
  color: #b04e48;
  border-color: #f5c6c6;
}
.btn.danger:hover {
  background: #b04e48;
  color: #fff;
}
.btn.sm {
  padding: 7px 12px;
  font-size: 11px;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
  margin-bottom: 27px;
}
.stat {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 11px;
  padding: 20px;
}
.stat small {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 700;
  display: block;
}
.stat b {
  display: block;
  font-size: 32px;
  font-weight: 500;
  margin: 10px 0 4px;
  color: var(--ink);
}
.stat span {
  font-size: 11px;
  color: #728279;
}

/* Section Head & Filter Tabs */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 17px;
  flex-wrap: wrap;
  gap: 12px;
}
h2 {
  font-size: 18px;
  margin: 0;
  font-weight: 600;
  color: var(--ink);
}
.count {
  color: var(--muted);
  font-size: 12px;
  margin-left: 9px;
  font-weight: 400;
}
.filters {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.filters a, .filters button {
  border: 1px solid var(--line);
  background: white;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 11px;
  color: var(--muted);
  text-decoration: none;
}
.filters a.on, .filters a:hover, .filters button.on {
  background: #e1eee7;
  color: #145b48;
  border-color: #b7d1c3;
  font-weight: 600;
}

/* Grid Layout */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
}

/* Paper Card */
.paper {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
  transition: box-shadow .15s;
}
.paper:hover {
  box-shadow: 0 4px 18px rgba(19, 117, 104, 0.06);
}
.paperbody { padding: 24px; }
.paper-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.paper-id {
  font-size: 11px;
  letter-spacing: 1px;
  color: #7d8e87;
  font-weight: 600;
}
.badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  border-radius: 5px;
  padding: 5px 9px;
  white-space: nowrap;
}
.badge.amber { background: #fff1d6; color: #8a6217; border: 1px solid #fae2b1; }
.badge.green { background: #e4f2e9; color: #276c47; border: 1px solid #cce5d4; }
.badge.blue  { background: #e6effb; color: #356497; border: 1px solid #cddff8; }
.badge.red   { background: #fbe9e8; color: #b04e48; border: 1px solid #f6cfcd; }
.badge.gray  { background: #eef1ef; color: #77837e; border: 1px solid #dfe5e1; }

.paper h3 {
  font-size: 17px;
  line-height: 1.5;
  font-weight: 600;
  margin: 12px 0 8px;
  color: var(--ink);
}
.paper h3 a:hover { color: var(--teal); }

.meta {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 20px;
}
.meta span { margin: 0 8px; color: #ccd6d0; }

/* 6-Stage Timeline Stepper */
.progress {
  display: flex;
  margin: 12px 0 22px;
  padding-bottom: 8px;
}
.step {
  position: relative;
  flex: 1;
  font-size: 9px;
  color: #9aa69e;
  padding-top: 25px;
  line-height: 1.4;
}
.step:before {
  content: '';
  position: absolute;
  top: 6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #e4eae5;
}
.step:last-child:before { width: 0; }
.step:after {
  content: attr(data-dot);
  display: grid;
  place-items: center;
  position: absolute;
  left: 0;
  top: 0;
  width: 15px;
  height: 15px;
  background: #edf1ed;
  border: 2px solid white;
  border-radius: 50%;
  font-size: 8px;
  color: #73827e;
  font-weight: 700;
}
.step.done { color: #387054; }
.step.done:before, .step.done:after {
  background: #26715b;
  color: white;
}
.step.current { color: #946c23; font-weight: bold; }
.step.current:after {
  background: #dbb35e;
  color: white;
}

/* Action Banner */
.action-box {
  display: flex;
  gap: 14px;
  align-items: center;
  background: #fff8e8;
  border: 1px solid #efe1bd;
  border-radius: 8px;
  padding: 16px;
  margin-top: 15px;
}
.action-box.green {
  background: #eff7f2;
  border-color: #c9e5d2;
}
.action-box.blue {
  background: #eef5fc;
  border-color: #cce1f5;
}
.action-box.red {
  background: #fdf2f1;
  border-color: #f7d0ce;
}
.action-box .symbol {
  font-size: 22px;
  color: #a68031;
  flex-shrink: 0;
}
.action-box.green .symbol { color: #26715b; }
.action-box.blue .symbol { color: #356497; }
.action-box.red .symbol { color: #b04e48; }

.action-box strong { font-size: 13px; color: var(--ink); display: block; }
.action-box p { font-size: 11px; margin: 4px 0 0; color: #8c7b59; }
.action-box.green p { color: #436e57; }
.action-box.blue p { color: #4b6a8d; }
.action-box.red p { color: #8c5350; }
.action-box .btn { margin-left: auto; white-space: nowrap; flex-shrink: 0; }

/* Paper Foot */
.paperfoot {
  border-top: 1px solid var(--line);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  color: var(--muted);
  background: #fdfdfd;
}
.paperfoot a, .paperfoot button {
  color: var(--teal);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
}
.paperfoot a:hover { text-decoration: underline; }

/* Sidecards */
.sidecard {
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 22px;
  margin-bottom: 18px;
}
.sidecard h3 {
  font-size: 14px;
  margin: 0 0 16px;
  color: var(--ink);
  font-weight: 600;
}
.deadline {
  padding: 0 0 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.deadline:last-child { border: 0; padding: 0; margin: 0; }
.deadline small { display: block; color: var(--muted); margin-bottom: 4px; font-weight: 600; font-size: 9px; letter-spacing: 1px; }
.deadline b { font-size: 13px; font-weight: 600; color: var(--ink); display: block; margin-bottom: 2px; }
.deadline p { font-size: 11px; margin: 0; }

.sidecard.note {
  background: #e7eee4;
  border-color: #c9dbcd;
}
.sidecard.note p { font-size: 11px; color: #5b735f; margin: 0; }

/* Forms, Cards & Tables */
.page-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  padding: 28px;
  margin-bottom: 22px;
}
.form-group {
  margin-bottom: 18px;
}
label {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}
label .required { color: #b04e48; }
input[type="text"], input[type="email"], input[type="password"], input[type="date"], input[type="number"], select, textarea {
  border: 1px solid #cddbd2;
  border-radius: 7px;
  padding: 11px 14px;
  width: 100%;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color .15s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(19, 117, 104, 0.12);
}
textarea { min-height: 120px; resize: vertical; }

.options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.option {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  background: #fff;
  transition: all .15s;
}
.option.selected, .option:hover {
  border: 2px solid var(--teal);
  background: #f0f8f2;
}
.option b { font-size: 14px; color: var(--ink); display: block; margin: 8px 0; }
.option p { font-size: 11px; margin: 0; line-height: 1.6; }

/* Alert Messages */
.alert {
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 12px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.alert.success { background: #e8f5ec; color: #225c3b; border: 1px solid #bce1c7; }
.alert.error   { background: #fdf2f2; color: #9c322b; border: 1px solid #f6c8c6; }
.alert.info    { background: #eef5fc; color: #285482; border: 1px solid #cbe1f7; }

/* Table */
.table-wrap { overflow-x: auto; margin-top: 15px; }
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
th, td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  line-height: 1.6;
}
th {
  background: #eef5ef;
  color: var(--ink);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
tr:hover td { background: #fbfdfb; }

/* Footer */
footer {
  font-size: 11px;
  color: #8b9a90;
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

/* Responsiveness */
@media (max-width: 1150px) {
  .layout { grid-template-columns: 1fr; }
  .app { grid-template-columns: 220px 1fr; }
  header { padding: 12px 25px; }
  .content { padding: 25px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (max-width: 768px) {
  .app { display: block; }
  aside { height: auto; padding: 16px; position: relative; }
  .subtitle, .aside-bottom { display: none; }
  .nav { display: flex; overflow-x: auto; gap: 6px; }
  .nav a, .nav button { white-space: nowrap; padding: 10px 12px; font-size: 11px; }
  .nav i, .nav small { display: none; }
  header { padding: 12px 18px; }
  .content { padding: 20px 16px; }
  .options { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
}
