@font-face {
  font-family: "OISA Sans";
  src: url("oisa-sans.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
:root {
  --primary: #112d3c;
  --accent: #d7f279;
  --accent-text: #203b17;
  --teal: #1e766d;
  --ink: #183443;
  --muted: #60717c;
  --bg: #f5f7f9;
  --surface: #fff;
  --line: #e2e8e9;
  --radius: 16px;
  --font: "OISA Sans", "Segoe UI", sans-serif;
  --shadow: 0 8px 32px #15364608;
}
:root[data-palette="ocean"] {
  --accent: #a7e9ef;
  --accent-text: #123f4a;
  --teal: #217f94;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  font: 14px/1.6 var(--font);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  line-height: 1.2;
  letter-spacing: -0.035em;
}
h1 {
  font-size: 36px;
  font-weight: 650;
}
h2 {
  font-size: 23px;
  font-weight: 630;
}
h3 {
  font-size: 18px;
  font-weight: 630;
}
h4 {
  font-size: 15px;
}
p {
  color: var(--muted);
}
img {
  max-width: 100%;
  display: block;
}
a,
button {
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #318c98;
  outline-offset: 4px;
}
button {
  border: 0;
  background: none;
}
.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  vertical-align: middle;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 11px;
  color: var(--teal);
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 22px;
}
.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.5;
  border: 1px solid transparent;
  white-space: nowrap;
  transition:
    transform 0.18s,
    background 0.18s;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn.primary {
  background: var(--primary);
  color: #fff;
}
.btn.lime {
  background: var(--accent);
  color: var(--accent-text);
}
.btn.secondary {
  background: #fff;
  border-color: var(--line);
}
.btn.ghost {
  padding-left: 0;
  padding-right: 0;
  color: var(--teal);
}
.btn.small {
  padding: 8px 13px;
  font-size: 12px;
}
.btn .icon {
  width: 17px;
  height: 17px;
}
.icon-btn {
  height: 38px;
  width: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: white;
}
.icon-btn:hover {
  background: var(--bg);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.01em;
  padding: 5px 9px;
  border-radius: 5px;
}
.badge i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.badge.green {
  color: #286958;
  background: #eaf4ef;
}
.badge.amber {
  color: #8c5d10;
  background: #fcf3de;
}
.badge.red {
  color: #a74844;
  background: #fceeed;
}
.badge.blue {
  color: #326587;
  background: #eaf2fa;
}
.badge.neutral {
  color: #697b86;
  background: #eef2f4;
}
.progress {
  background: #edf1f1;
  height: 5px;
  border-radius: 8px;
  overflow: hidden;
}
.progress span {
  display: block;
  height: 100%;
  background: var(--teal);
  border-radius: 8px;
  transition: width 0.3s;
}
.brand {
  display: flex;
  gap: 9px;
  align-items: center;
}
.brand-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 39px;
  height: 39px;
  background: var(--accent);
  border-radius: 50%;
  color: var(--primary);
}
.brand-symbol .icon {
  width: 25px;
  height: 25px;
  transform: rotate(37deg);
}
.brand-word {
  font-size: 29px;
  line-height: 1;
  letter-spacing: -1.5px;
  font-weight: 800;
}
.brand-word > span {
  display: block;
  font-size: 6px;
  letter-spacing: 1.6px;
  margin-top: 5px;
}
.app-shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 238px;
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 28px 20px 16px;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.sidebar .brand {
  margin: 0 13px 31px;
}
.workspace-tag {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.workspace-tag .icon {
  width: 16px;
}
.workspace-tag > span {
  margin-left: auto;
  font-size: 9px;
  background: var(--bg);
  padding: 2px 5px;
}
.nav-label {
  font-size: 9px;
  letter-spacing: 0.15em;
  margin: 28px 14px 12px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 500;
  padding: 12px 14px;
  margin: 3px 0;
  border-radius: 8px;
  color: #637581;
  width: 100%;
  text-align: left;
}
.nav-item.active {
  color: var(--primary);
  background: #eaf0e6;
  font-weight: 700;
}
.nav-item:hover {
  background: #f2f5f1;
}
.nav-item.active i {
  height: 6px;
  width: 6px;
  background: var(--teal);
  border-radius: 50%;
  margin-left: auto;
}
.nav-item .icon {
  width: 18px;
  height: 18px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 45px;
}
.side-callout {
  border-radius: 12px;
  background: #f2f5ef;
  padding: 19px;
  margin-bottom: 19px;
}
.side-callout > .icon {
  color: var(--teal);
  transform: rotate(35deg);
  margin-bottom: 12px;
}
.side-callout strong {
  display: block;
  font-size: 13px;
  line-height: 1.5;
}
.side-callout > span {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 6px;
}
.profile {
  border-top: 1px solid var(--line);
  margin-top: 17px;
  padding-top: 18px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.profile strong {
  font-size: 11px;
  display: block;
}
.profile small {
  font-size: 10px;
  color: var(--muted);
  display: block;
}
.profile > .icon {
  margin-left: auto;
  width: 15px;
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eee5db;
  color: #7e6253;
  font-size: 12px;
  font-weight: 650;
}
.avatar.small {
  width: 32px;
  height: 32px;
  font-size: 10px;
}
.app-main {
  margin-left: 238px;
  flex: 1;
  min-width: 0;
}
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  height: 77px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  gap: 15px;
}
.breadcrumb {
  font-size: 11px;
  color: var(--muted);
}
.breadcrumb span {
  margin: 0 13px;
  color: #bac4c9;
}
.breadcrumb strong {
  color: var(--ink);
  font-weight: 500;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.prototype-tag {
  font-size: 9px;
  letter-spacing: 0.03em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 4px 8px;
}
.notification {
  position: relative;
  border: 0;
}
.notification i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
  position: absolute;
  right: 9px;
  top: 8px;
}
.mobile-menu {
  display: none;
}
main {
  max-width: 1600px;
  margin: 0 auto;
  padding: 32px 38px 18px;
  outline: none;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.page-heading h1 {
  font-size: 31px;
  margin-bottom: 8px;
}
.page-heading p {
  font-size: 12px;
}
.page-heading .eyebrow {
  font-size: 9px;
  margin-bottom: 8px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}
.section-head h2 {
  font-size: 19px;
}
.section-head p {
  font-size: 11px;
  margin-top: 5px;
}
.section-head a {
  font-size: 11px;
  font-weight: 650;
  color: var(--teal);
}
.section-head a .icon {
  width: 14px;
  height: 14px;
  margin-left: 5px;
}
.metric {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.metric-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}
.metric-label > .icon {
  width: 18px;
  height: 18px;
  color: var(--teal);
}
.metric-value {
  font-size: 32px;
  font-weight: 650;
  letter-spacing: -1.5px;
  line-height: 1.4;
  margin-top: 8px;
}
.metric-value small {
  font-size: 13px;
  letter-spacing: 0;
  color: var(--muted);
  font-weight: 400;
}
.metric p {
  font-size: 10px;
  margin-top: 3px;
}
.metric p span {
  color: var(--teal);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
}
.field input,
.field select,
.field textarea,
input.search,
select.filter {
  border: 1px solid #dce3e5;
  border-radius: 8px;
  padding: 12px 13px;
  background: #fff;
  color: var(--ink);
  width: 100%;
  min-width: 0;
}
.field textarea {
  resize: vertical;
  min-height: 110px;
}
.field small {
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
}
.search-wrap {
  position: relative;
  flex: 1;
}
.search-wrap > .icon {
  position: absolute;
  left: 13px;
  top: 12px;
  width: 17px;
  color: var(--muted);
}
input.search {
  padding-left: 39px;
  font-size: 12px;
}
.filters {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
select.filter {
  width: auto;
  font-size: 12px;
}
.tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.tabs button {
  font-size: 12px;
  padding: 12px 1px 14px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-weight: 600;
}
.tabs button.active {
  color: var(--primary);
  border-color: var(--teal);
}
.tabs button span {
  margin-left: 7px;
  background: #eaf0e8;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 11px;
}
th {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  font-weight: 500;
  background: #f8fafb;
  padding: 13px 15px;
  white-space: nowrap;
}
td {
  padding: 17px 15px;
  border-bottom: 1px solid var(--line);
}
td strong {
  display: block;
  font-size: 11px;
}
td small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}
tr:last-child td {
  border-bottom: 0;
}
.notice {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 11px;
  background: #edf4f4;
  color: var(--teal);
}
.notice.amber {
  background: #fbf4e6;
  color: #856123;
}
.notice .icon {
  width: 19px;
  flex-shrink: 0;
}
.notice a {
  margin-left: auto;
  white-space: nowrap;
  font-weight: 700;
}
.app-footer {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: var(--muted);
  padding: 30px 0 8px;
}
.app-footer .icon {
  width: 12px;
  height: 12px;
  margin-left: 5px;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 12px;
  z-index: 100;
  background: var(--accent);
  padding: 12px;
}
.skip-link:focus {
  top: 10px;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 30px);
  background: var(--primary);
  color: #fff;
  padding: 15px 22px;
  border-radius: 10px;
  z-index: 100;
  max-width: 90vw;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 19px;
  width: min(660px, 92vw);
  padding: 28px;
  box-shadow: 0 25px 100px #102c3940;
  color: var(--ink);
  max-height: 90vh;
}
dialog::backdrop {
  background: #102c3970;
  backdrop-filter: blur(5px);
}
dialog p {
  margin: 14px 0;
}
dialog .stack {
  margin-top: 20px;
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}
.dialog-head h2 {
  font-size: 22px;
}
.theme-options {
  display: flex;
  gap: 15px;
}
.empty-state {
  text-align: center;
  padding: 55px 20px;
  color: var(--muted);
}
.empty-state .icon {
  width: 36px;
  height: 36px;
  margin-bottom: 15px;
}
.empty-state h3 {
  color: var(--ink);
  margin-bottom: 9px;
}
.empty-state p {
  font-size: 12px;
}
.reveal {
  animation: enter 0.55s both;
}
@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (min-width: 1600px) {
  main {
    padding: 42px 55px 18px;
  }
  .sidebar {
    width: 258px;
  }
  .app-main {
    margin-left: 258px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 208px;
    padding: 26px 12px 15px;
  }
  .app-main {
    margin-left: 208px;
  }
  main {
    padding: 27px 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .grid-4 {
    gap: 14px;
  }
  .grid-3 {
    gap: 15px;
  }
  .metric {
    padding: 17px;
  }
  .metric-value {
    font-size: 27px;
  }
  .prototype-tag {
    display: none;
  }
  .btn {
    padding: 11px 15px;
  }
}
@media (max-width: 850px) {
  .sidebar {
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform 0.2s;
    width: 238px;
  }
  .sidebar.open {
    transform: translateX(0);
    visibility: visible;
    box-shadow: 20px 0 50px #142e3930;
  }
  .app-main {
    margin-left: 0;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .breadcrumb {
    margin-right: auto;
  }
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .topbar {
    height: 65px;
    padding: 0 20px;
  }
  .topbar-actions {
    gap: 7px;
  }
  main {
    padding: 24px 20px;
  }
  .page-heading h1 {
    font-size: 28px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading > .btn {
    font-size: 11px;
  }
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 20px;
  }
  .page-heading {
    flex-direction: column;
    gap: 13px;
  }
  .page-heading h1 {
    font-size: 28px;
  }
  .topbar-actions > .icon-btn:first-of-type {
    display: none;
  }
  .breadcrumb {
    font-size: 10px;
  }
  .breadcrumb span {
    margin: 0 7px;
  }
  .metric-value {
    font-size: 27px;
  }
  .app-footer {
    gap: 20px;
    align-items: flex-start;
  }
  .filters {
    flex-wrap: wrap;
  }
  .filters .search-wrap {
    flex-basis: 100%;
  }
  .tabs {
    gap: 16px;
    overflow: auto;
    white-space: nowrap;
  }
  .notice {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .notice a {
    margin-left: 30px;
  }
  .theme-options {
    flex-direction: column;
  }
  h1 {
    font-size: 32px;
  }
}
@media (max-height: 780px) and (min-width: 851px) {
  .side-callout { display: none; }
  .sidebar-bottom { padding-top: 18px; }
  .sidebar .brand { margin-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
