@import url('./theme.css');
* {
  box-sizing: border-box;
}
html,
body,
input,
button,
select,
textarea,
code,
pre {
  font-family: var(--font-family);
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-size: 14px;
  line-height: 1.65;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.35;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #bd7ee9;
  outline-offset: 3px;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.1px;
  color: var(--brand);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.4;
}
.brand small {
  display: block;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 1.4px;
  margin-top: 4px;
  color: var(--muted);
}
.brand-logo {
  flex-shrink: 0;
  border-radius: 12px;
}
.brand-light {
  color: white;
}
.brand-light small {
  color: #eddafa;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.button.primary {
  background: var(--brand-gradient);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 10px #8500d91c;
}
.button:hover {
  filter: brightness(0.97);
}
.button.full {
  width: 100%;
}
.tabler-icon {
  width: 21px;
  height: 21px;
  vertical-align: middle;
  flex-shrink: 0;
  stroke-width: 1.8;
}
.skip-link {
  position: fixed;
  left: 18px;
  top: -100px;
  background: var(--surface);
  padding: 12px;
  z-index: 100;
}
.skip-link:focus {
  top: 12px;
}
.alert {
  padding: 14px 16px;
  background: #fff0f3;
  border: 1px solid #edc5cf;
  border-radius: 8px;
  color: #922039;
  font-size: 13px;
}
.error-page {
  max-width: 680px;
  margin: 12vh auto;
  padding: 32px;
  overflow-wrap: anywhere;
}
.error-page h1 {
  margin-top: 24px;
}
.app-shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 254px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--surface);
  padding: 30px 18px 22px;
  border-right: 1px solid var(--border);
}
.sidebar .brand {
  padding: 0 10px;
  font-size: 21px;
}
.nav-label {
  margin: 44px 14px 14px;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--muted);
  font-weight: 500;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 14px;
  margin: 3px 0;
  border-radius: 8px;
  font-size: 13px;
  line-height: 20px;
  color: var(--text);
  font-weight: 500;
}
.nav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.nav-item:hover {
  background: var(--brand-soft);
  color: var(--brand);
}
.nav-item.active {
  color: white;
  background: var(--brand-gradient);
  box-shadow: 0 4px 12px #8500d921;
}
.nav-item.active svg {
  stroke-width: 2;
}
.sidebar-note {
  margin-top: auto;
  margin-bottom: 22px;
  padding: 18px 14px;
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 12px;
  color: var(--brand);
}
.sidebar-note p {
  font-size: 11px;
  color: var(--muted);
  margin: 9px 0 0;
  line-height: 1.8;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  margin-right: 5px;
}
.logout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
}
.workspace {
  flex: 1;
  min-width: 0;
}
.topbar {
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
main#main-content {
  max-width: 1600px;
  margin: auto;
  padding: 28px 32px 36px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.page-heading h1 {
  font-size: 29px;
  letter-spacing: -0.8px;
  margin: 6px 0 8px;
}
.page-heading p {
  font-size: 13px;
  margin: 0;
}
.page-heading-actions {
  display: flex;
  gap: 10px;
}
.pill {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 11px;
}
.welcome-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 20px;
  overflow: hidden;
  position: relative;
  padding: 27px 30px;
  background: linear-gradient(110deg, #f5e9ff, #fff8f0);
  border: 1px solid #eedcf9;
  border-radius: 14px;
  margin-bottom: 24px;
}
.welcome-banner h2 {
  font-size: 26px;
  letter-spacing: -0.5px;
  margin: 10px 0;
}
.welcome-banner p {
  max-width: 500px;
  font-size: 13px;
  color: #77657f;
  margin-bottom: 18px;
}
.welcome-banner .button {
  font-size: 12px;
}
.banner-visual {
  position: relative;
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.banner-photo {
  width: 180px;
  height: 190px;
  object-fit: cover;
  object-position: 45% 45%;
  border-radius: 90px 90px 12px 12px;
  box-shadow: 0 10px 25px #582b6120;
}
.banner-seal {
  position: absolute;
  right: -5px;
  bottom: 6px;
  width: 50px;
  height: 50px;
  background: var(--brand-gradient);
  color: white;
  border: 5px solid white;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.banner-seal svg {
  width: 22px;
  height: 22px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}
.stat {
  display: grid;
  grid-template-columns: 1fr 48px;
  gap: 4px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.stat > span {
  font-size: 13px;
  color: var(--muted);
}
.stat > strong {
  font-size: 31px;
  font-weight: 600;
  grid-column: 1;
  line-height: 1.4;
}
.stat > small {
  font-size: 11px;
  color: var(--muted);
  grid-column: 1 / -1;
  margin-top: 8px;
}
.stat-icon {
  grid-column: 2;
  grid-row: 1 / 3;
  background: var(--brand-soft);
  color: var(--brand);
  width: 45px;
  height: 45px;
  border-radius: 11px;
  display: grid;
  place-items: center;
}
.stat-icon svg {
  width: 23px;
  height: 23px;
}
.dashboard-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 24px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}
.section-heading h2 {
  font-size: 17px;
  margin: 0;
  letter-spacing: -0.2px;
}
.section-heading > span {
  font-size: 11px;
}
.module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.module-card {
  position: relative;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.module-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: 10px;
  margin-bottom: 17px;
}
.module-card h3 {
  font-size: 14px;
  margin: 0 0 8px;
}
.module-card p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 16px;
}
.planned-label {
  display: inline-flex;
  background: var(--canvas);
  padding: 4px 9px;
  border-radius: 5px;
  font-size: 10px;
  color: var(--muted);
}
.activity-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  box-shadow: var(--shadow);
  align-self: start;
}
.activity-panel .section-heading {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.activity-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  position: relative;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}
.activity-row:last-child {
  border: 0;
}
.activity-dot {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: 50%;
}
.activity-dot svg {
  width: 15px;
  height: 15px;
}
.activity-row strong {
  font-size: 12px;
  font-weight: 500;
  display: block;
  overflow-wrap: anywhere;
}
.activity-row small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}
.activity-row time {
  grid-column: 2;
  color: var(--muted);
  font-size: 10px;
  margin-top: -8px;
}
.empty-state {
  padding: 18px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}
:root[data-theme='dark'] .welcome-banner {
  background: linear-gradient(110deg, #382046, #241d2c);
  border-color: var(--border);
}
:root[data-theme='dark'] .welcome-banner p {
  color: var(--muted);
}
@media (max-width: 1100px) {
  .sidebar {
    width: 224px;
  }
  .sidebar .brand {
    font-size: 18px;
  }
  main#main-content {
    padding: 24px;
  }
  .dashboard-columns {
    grid-template-columns: 1fr;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading-actions {
    flex-direction: column;
  }
  .stat {
    padding: 18px;
  }
  .stat-icon {
    width: 35px;
    height: 35px;
  }
  .stat {
    grid-template-columns: 1fr 35px;
  }
}
@media (max-width: 720px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    padding: 20px;
  }
  .sidebar-note {
    display: none;
  }
  .nav-label {
    margin: 22px 14px 8px;
  }
  .logout-form {
    margin-top: 16px;
  }
  main#main-content {
    padding: 22px 18px;
  }
  .page-heading {
    display: block;
  }
  .page-heading h1 {
    font-size: 26px;
  }
  .page-heading-actions {
    flex-direction: row;
    margin-top: 16px;
  }
  .welcome-banner {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .welcome-banner h2 {
    font-size: 25px;
  }
  .banner-visual {
    display: none;
  }
  .stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .stat {
    grid-template-columns: 1fr 44px;
    padding: 18px;
  }
  .stat-icon {
    width: 44px;
    height: 44px;
  }
  .stat > strong {
    font-size: 29px;
  }
  .module-grid {
    grid-template-columns: 1fr;
  }
  .activity-panel {
    padding: 18px;
  }
  .section-heading {
    align-items: flex-start;
  }
  .section-heading > span {
    max-width: 100px;
    text-align: right;
  }
  .page-heading-actions .button {
    font-size: 12px;
  }
}
.catalog-section {
  margin-bottom: 24px;
  padding: 24px;
}
.catalog-filter {
  display: flex;
  align-items: end;
  gap: 16px;
  margin: 20px 0;
}
.catalog-filter label {
  display: grid;
  gap: 6px;
  min-width: 220px;
}
.catalog-row {
  display: grid;
  grid-template-columns: minmax(85px, 1fr) repeat(2, minmax(100px, 1fr)) auto auto;
  gap: 12px;
  align-items: end;
  padding: 18px 0;
  border-bottom: 1px solid var(--border, #e6dfee);
}
.catalog-row label {
  display: grid;
  gap: 6px;
  font-size: 12px;
}
.catalog-row input,
.catalog-filter select {
  width: 100%;
  min-width: 0;
  padding: 10px;
  border: 1px solid #d8cfdf;
  border-radius: 8px;
  font: inherit;
}
.catalog-code {
  align-self: center;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.catalog-row .catalog-check {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 12px;
}
.catalog-check input {
  width: 16px;
}
@media (max-width: 1100px) {
  .catalog-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .catalog-row {
    grid-template-columns: 1fr;
  }
  .catalog-filter {
    align-items: stretch;
    flex-direction: column;
  }
  .catalog-section {
    padding: 16px;
  }
}
.catalog-section button {
  padding: 10px 16px;
  color: white;
  background: var(--brand-gradient);
  border: 0;
  border-radius: 8px;
  font-weight: 600;
  min-height: 42px;
}
.catalog-section button.button-secondary {
  background: var(--brand-soft);
  color: var(--brand-dark);
}
.catalog-section summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  color: var(--brand-dark);
}
.catalog-row input,
.catalog-filter select {
  background: var(--surface);
  color: var(--text);
}
.catalog-section input:focus-visible,
.catalog-section select:focus-visible,
.catalog-section button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}
