:root {
  color-scheme: light;
  --red: #BD2300;
  --terracotta: #C75030;
  --peach: #FFC391;
  --white: #FFFFFF;
  --black: #000000;
  --line: color-mix(in srgb, var(--black) 14%, var(--white));
  --sans: "Satoshi", Arial, sans-serif;
  --display: "Chillax", "Satoshi", Arial, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--black);
  background: var(--white);
  font: 400 16px/1.2 var(--sans);
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; }
svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.layout { height: 100vh; height: 100dvh; display: grid; grid-template-columns: 248px minmax(0, 1fr); overflow: hidden; }
aside { display: flex; flex-direction: column; min-height: 0; z-index: 3; background: var(--red); color: var(--white); }
.brand, .mobile-title { display: flex; align-items: center; color: var(--red); background: var(--white); }
.brand { flex: none; gap: 13px; height: 80px; padding: 0 19px; border-bottom: 4px solid var(--peach); }
.brand img { width: 98px; height: auto; }
.brand span, .mobile-title b { font-size: 14px; font-weight: 700; padding-left: 13px; border-left: 1px solid var(--terracotta); line-height: 1; }
.nav-body { flex: 1; overflow: auto; padding: 24px 10px; }
.eyebrow { font-size: 11px; font-weight: 700; line-height: 1; letter-spacing: .13em; text-transform: uppercase; }
.nav-body .eyebrow { color: var(--white); margin: 0 12px 13px; }
nav a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 11px 14px; background: var(--peach); color: var(--black); border-radius: 14px; font-size: 15px; font-weight: 700; }
nav svg { color: var(--red); }
nav i { width: 6px; height: 6px; margin-left: auto; border-radius: 50%; background: var(--red); }
aside footer { margin: 0 16px; padding: 17px 4px; border-top: 1px solid var(--terracotta); text-align: center; font-size: 12px; }
.workarea { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
header { display: flex; align-items: center; gap: 10px; flex: none; height: 72px; padding: 0 32px; background: var(--red); color: var(--white); }
.host { margin-left: auto; font-size: 14px; font-weight: 500; }
.mobile-title, #menu, .veil { display: none; }
main { flex: 1; min-height: 0; overflow: auto; }
.container { max-width: 1440px; margin: 0 auto; padding: clamp(32px, 4.4vw, 72px) clamp(24px, 4.4vw, 72px); }
.container .eyebrow { color: var(--red); }
h1, h2 { font-family: var(--display); line-height: .9; }
h1 { margin: 15px 0 32px; font-size: 38px; font-weight: 700; letter-spacing: -.025em; }
h2 { margin: 0; font-size: clamp(26px, 2.1vw, 36px); font-weight: 600; }
section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, 30%); min-height: clamp(180px, 15vw, 242px); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.section-body { padding: clamp(24px, 3vw, 44px); align-self: center; }
.section-body p { max-width: 32em; margin: 16px 0 0; font-size: 16px; line-height: 1.2; }
.brand-pattern { background: var(--red) url("./shine-pattern.svg") center / cover no-repeat; }
.skip { position: fixed; z-index: 5; top: -80px; left: 12px; padding: 10px; color: var(--red); background: var(--white); }
.skip:focus { top: 12px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--black); outline-offset: -3px; }
#menu:focus-visible { outline-color: var(--white); }
@media (max-width: 767px) {
  .layout { display: block; }
  .workarea { height: 100%; }
  aside { position: fixed; inset: 0 auto 0 0; width: min(248px, 82vw); transform: translateX(-105%); visibility: hidden; }
  .open aside { transform: none; visibility: visible; }
  .open .veil { display: block; position: fixed; inset: 0; border: 0; background: rgb(0 0 0 / 40%); z-index: 2; }
  header { height: 60px; padding: 0 12px; }
  #menu { display: grid; place-items: center; min-width: 44px; min-height: 44px; border: 0; border-radius: 8px; background: transparent; color: var(--white); }
  .mobile-title { display: flex; gap: 8px; border-radius: 6px; padding: 7px 9px; }
  .mobile-title img { width: 56px; height: auto; }
  .mobile-title b { padding-left: 8px; font-size: 12px; }
  .host { font-size: 12px; }
  .container { padding: 34px 20px; }
  h1 { margin: 13px 0 24px; font-size: 30px; }
  section { grid-template-columns: minmax(0, 1fr) minmax(48px, 20%); min-height: 162px; }
  .section-body { padding: 24px 18px; }
}
@media (max-width: 360px) { .host { display: none; } }

.applications { display: block; min-height: 0; border: 0; overflow: visible; }
.grid-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 18px; }
.grid-heading h2 { font-size: 22px; letter-spacing: -.015em; }
.grid-heading p { margin: 0; font: 400 14px/1.2 var(--sans); }
.application-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(174px, 1fr)); gap: 14px;
  list-style: none; padding: 0; margin: 0;
}
.module-tile {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 16px;
  height: 100%; min-height: 155px; border-radius: 17px; padding: 19px 19px 32px;
  background: linear-gradient(155deg, var(--light), var(--deep) 84%); color: var(--label, var(--white));
  box-shadow: 0 3px 8px rgb(0 0 0 / 11%);
}
.module-tile::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  top: 10%;
  right: 5%;
  width: 44%;
  max-width: 96px;
  aspect-ratio: 1;
  background: url("./shine-sparkle.svg") center / contain no-repeat;
  opacity: .19;
}
.module-tile:hover { box-shadow: 0 5px 13px rgb(0 0 0 / 20%); }
.module-tile:focus-visible { outline: 3px solid var(--black); outline-offset: 2px; }
.module-icon {
  display: inline-grid; place-items: center; flex-shrink: 0; background: white; color: var(--deep, var(--red));
  width: 49px; height: 49px; border-radius: 14px; box-shadow: 0 2px 7px rgb(0 0 0 / 12%);
}
.module-icon svg { height: 27px; width: 27px; stroke-width: 2.1; }
.module-name { font: 600 20px/1.08 var(--display); overflow-wrap: anywhere; }
.tile-arrow {
  position: absolute; bottom: 10px; right: 12px; border: 1.5px solid currentColor; border-radius: 50%;
  width: 19px; height: 19px; padding: 2px; stroke-width: 2; opacity: .95;
}
.tone-crm { --light: #e05039; --deep: #bd2300; }
.tone-transaction { --light: #278adb; --deep: #075aaa; }
.tone-quotation { --light: #ffc64a; --deep: #e59910; --label: #301700; }
.tone-sales { --light: #9767db; --deep: #6133aa; }
.tone-delivery { --light: #139ba7; --deep: #006876; }
.tone-purchase { --light: #69bd5c; --deep: #287c36; }
.tone-tasks { --light: #6e80d8; --deep: #394994; }
.tone-attendance { --light: #27a881; --deep: #076b55; }
.tone-support { --light: #ce5b99; --deep: #993063; }
.tone-users { --light: #7589a9; --deep: #445a79; }
.tone-admin { --light: #786e8e; --deep: #4a425d; }
.module-page .module-icon { margin-bottom: 18px; background: var(--peach); }
.module-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 16px; color: var(--red); font: 700 15px/1.2 var(--sans); text-decoration: underline; }
.module-page p { margin: 0; }
@media (max-width: 767px) {
  .application-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .applications .module-tile { min-height: 134px; padding: 12px 10px 26px; border-radius: 14px; gap: 12px; }
  .module-tile .module-icon { width: 38px; height: 38px; border-radius: 10px; }
  .module-tile .module-icon svg { width: 23px; height: 23px; }
  .module-name { font-size: clamp(14px, 3.65vw, 20px); }
  .tile-arrow { width: 16px; height: 16px; right: 9px; bottom: 7px; }
  .grid-heading { display: grid; gap: 7px; }
}
@media (min-width: 360px) and (max-width: 479px) {
  .application-grid { margin-inline: -7px; gap: 8px; }
  .applications .module-tile { padding-inline: 8px 4px; }
  .module-name { letter-spacing: -.015em; }
}
@media (max-width: 359px) {
  .application-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
