:root {
  --paper: #f7f9f8;
  --mist: #e9efee;
  --steel: #bec8d2;
  --graphite: #27353f;
  --graphite-deep: #1d2a33;
  --orange: #f49955;
  --wine: #561a23;
  --line: #dbe2e3;
  --muted: #71808a;
}

* { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; color: var(--graphite); font-family: Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.brand-logo { display: block; width: 100%; height: auto; object-fit: contain; }
.eyebrow { color: #b56b3b; font-size: 11px; font-weight: 800; letter-spacing: .18em; }
.eyebrow--light { color: var(--orange); }

/* Login screen */
.login-page { background: var(--mist); }
.login-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(485px, .95fr); }
.login-brand { position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; min-height: 760px; padding: 42px clamp(38px, 4.1vw, 74px) 64px; color: white; background: radial-gradient(circle at 68% 41%, #374c59 0, transparent 31%), linear-gradient(155deg, #27353f 17%, #1c2931 75%); }
.login-brand::after { content: ""; position: absolute; inset: auto -15% -35% 35%; height: 68%; border: 1px solid rgba(255,255,255,.07); transform: rotate(-22deg); pointer-events: none; }
.login-brand__top, .login-brand__bottom { position: relative; z-index: 2; }
.login-brand__top { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.login-brand__top .brand-logo { max-width: 260px; }
.brand-label { display: inline-block; padding-top: 6px; color: #c3ccd0; font-size: 11px; text-align: right; letter-spacing: .04em; white-space: nowrap; }
.login-brand__bottom p { max-width: 540px; margin: 20px 0 26px; font-size: clamp(38px, 4vw, 68px); font-weight: 700; letter-spacing: -.065em; line-height: 1.04; }
.brand-rule { display: block; width: 83px; height: 5px; background: var(--orange); }
.brand-art { position: absolute; inset: 18% 4% 13% 18%; opacity: .94; pointer-events: none; }
.brand-art__grid { position: absolute; inset: 4% 0 1% 7%; background-image: linear-gradient(rgba(226,235,235,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(226,235,235,.09) 1px, transparent 1px); background-size: 56px 56px; transform: skewY(-7deg); mask-image: linear-gradient(90deg, transparent, black 35%, transparent 95%); }
.brand-art__piece { position: absolute; width: 47%; height: 25%; clip-path: polygon(0 0, 100% 0, 73% 100%, 0 100%); box-shadow: 10px 20px 20px rgba(0,0,0,.4); }
.brand-art__piece--one { top: 12%; left: 26%; transform: rotate(-34deg); background: linear-gradient(130deg, #8495a2, #27353f 49%, #15232b); }
.brand-art__piece--two { top: 28%; left: 38%; transform: rotate(31deg); background: linear-gradient(130deg, #6a7b88, #23333d 62%); }
.brand-art__piece--three { top: 34%; left: 10%; transform: rotate(-34deg); background: linear-gradient(140deg, #465b66, #17252e 70%); }
.brand-art__piece--four { top: 51%; left: 35%; transform: rotate(29deg); background: linear-gradient(110deg, #778b99, #1b2c36 70%); }
.brand-art__accent { position: absolute; top: 35%; right: 1%; width: 16%; height: 16%; background: var(--orange); clip-path: polygon(20% 0, 100% 0, 80% 100%, 0 100%); transform: rotate(-35deg); box-shadow: 15px 18px 40px rgba(244,153,85,.2); }
.login-content { display: flex; flex-direction: column; min-width: 0; padding: 34px clamp(32px, 4vw, 72px) 32px; }
.prototype-switch { display: flex; align-self: flex-end; align-items: center; gap: 14px; min-height: 42px; font-size: 12px; }
.prototype-switch__label { margin-right: 8px; color: #929da2; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.prototype-switch__item { padding: 8px 0; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.prototype-switch__item:hover, .prototype-switch__item.is-current { color: var(--graphite); border-color: var(--orange); }
.prototype-switch__item span { margin-left: 2px; }
.login-card { width: min(100%, 430px); margin: auto; padding: 56px 0 30px; }
.login-card h1 { margin: 14px 0 18px; font-size: clamp(46px, 4.4vw, 72px); line-height: .98; letter-spacing: -.07em; }
.login-intro { margin: 0 0 43px; color: #63727b; font-size: 16px; line-height: 1.5; }
.login-form { display: flex; flex-direction: column; }
.login-form label { margin: 0 0 10px; font-size: 13px; font-weight: 800; }
.login-form input { width: 100%; height: 56px; margin: 0 0 25px; padding: 0 17px; color: var(--graphite); background: rgba(255,255,255,.76); border: 1px solid #d3dcde; border-radius: 4px; outline: none; }
.login-form input:focus { border-color: #9eabb3; box-shadow: 0 0 0 3px rgba(190,200,210,.3); }
.login-form input::placeholder { color: #a6b0b5; }
.primary-button { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 58px; margin-top: 6px; padding: 0 21px; color: white; background: var(--graphite); border: 0; border-radius: 4px; font-size: 15px; font-weight: 800; opacity: 1; cursor: default; }
.primary-button span { font-size: 20px; font-weight: 400; }
.prototype-note { margin: 18px 0 0; color: #819098; font-size: 12px; line-height: 1.5; }
.login-content__footer { display: flex; align-items: center; gap: 10px; color: #829098; font-size: 11px; }
.footer-mark { display: inline-block; width: 14px; height: 14px; background: var(--orange); clip-path: polygon(0 0, 100% 0, 0 100%); }

/* Workspace screen */
.workspace-page { background: var(--paper); }
.workspace-layout { display: grid; grid-template-columns: 256px minmax(0, 1fr); min-height: 100vh; }
.sidebar { display: flex; flex-direction: column; min-height: 100vh; padding: 30px 18px 24px; color: white; background: var(--graphite); }
.sidebar__brand { padding: 6px 12px 38px; border-bottom: 1px solid rgba(255,255,255,.13); }
.sidebar__brand .brand-logo { width: 202px; }
.sidebar__nav { padding: 38px 0; }
.sidebar__caption { display: block; padding: 0 17px 17px; color: #90a0a9; font-size: 10px; font-weight: 800; letter-spacing: .19em; }
.nav-placeholder { display: flex; align-items: center; gap: 16px; height: 49px; margin: 3px 0; padding: 0 17px; border-radius: 4px; }
.nav-placeholder i { width: 17px; height: 17px; flex: none; border: 1.5px solid #a6b4bd; transform: rotate(-12deg); }
.nav-placeholder b { width: 92px; height: 7px; background: #6e818d; border-radius: 20px; }
.nav-placeholder:nth-of-type(3) b { width: 72px; }
.nav-placeholder:nth-of-type(4) b { width: 110px; }
.nav-placeholder:nth-of-type(5) b { width: 82px; }
.nav-placeholder:nth-of-type(6) b { width: 99px; }
.nav-placeholder--selected { background: #3b4a54; }
.nav-placeholder--selected i { border-color: var(--orange); background: var(--orange); clip-path: polygon(0 0,100% 0,100% 70%,68% 100%,0 100%); }
.nav-placeholder--selected b { background: #dce5e7; }
.sidebar__bottom { display: flex; align-items: center; gap: 12px; margin-top: auto; padding: 19px 9px 0; border-top: 1px solid rgba(255,255,255,.13); font-size: 13px; font-weight: 800; }
.sidebar__bottom small { display: block; margin-top: 4px; color: #90a1aa; font-size: 10px; font-weight: 400; }
.sidebar__bottom-mark { width: 27px; height: 27px; flex: none; background: var(--orange); clip-path: polygon(0 0,100% 0,72% 50%,100% 100%,0 100%,28% 50%); }
.workspace-main { min-width: 0; }
.workspace-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 84px; padding: 0 clamp(28px, 4vw, 66px); background: white; border-bottom: 1px solid #e6ebec; }
.workspace-header__logo { display: none; }
.workspace-header__crumb { display: flex; align-items: center; gap: 12px; color: #7e8b94; font-size: 12px; }
.crumb-square { width: 11px; height: 11px; background: var(--orange); transform: rotate(45deg); }
.crumb-slash { color: #bbc4c8; }
.workspace-header__right { display: flex; align-items: center; gap: 13px; }
.preview-badge { display: inline-flex; align-items: center; height: 28px; margin-right: 16px; padding: 0 10px; color: #8b5c43; background: #fff1e7; border-radius: 3px; font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.employee-avatar { display: grid; place-items: center; width: 34px; height: 34px; color: white; background: var(--wine); border-radius: 50%; font-size: 13px; font-weight: 800; }
.employee-label { font-size: 13px; font-weight: 700; }
.workspace-content { max-width: 1500px; margin: 0 auto; padding: 54px clamp(28px, 4vw, 66px) 30px; }
.workspace-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 38px; }
.workspace-heading h1 { margin: 11px 0 9px; font-size: clamp(38px, 4vw, 60px); line-height: 1; letter-spacing: -.062em; }
.heading-period { color: var(--orange); }
.workspace-heading p { margin: 0; color: #84919a; font-size: 14px; }
.text-link { padding: 10px 0; color: var(--graphite); border-bottom: 1px solid #97a6ac; font-size: 12px; font-weight: 800; white-space: nowrap; }
.text-link span { margin-left: 12px; font-size: 18px; font-weight: 400; }
.mobile-nav { display: none; }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(270px, 1fr); gap: 20px; }
.feature-panel { position: relative; grid-column: 1 / -1; display: flex; flex-direction: column; justify-content: space-between; min-height: 295px; padding: 28px 32px; overflow: hidden; color: white; background: linear-gradient(120deg,#263741,#1d2d36 76%); border-radius: 5px; }
.feature-panel::before { content: ""; position: absolute; inset: -50% 1% -45% 44%; border: 1px solid rgba(255,255,255,.07); transform: rotate(40deg); }
.feature-panel::after { content: ""; position: absolute; width: 310px; height: 310px; top: -100px; right: 10%; background: linear-gradient(130deg,rgba(190,200,210,.3),transparent 67%); clip-path: polygon(0 0,100% 0,67% 100%,0 100%); transform: rotate(28deg); }
.feature-panel__tag { display: flex; align-items: center; gap: 10px; position: relative; z-index: 1; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.feature-panel__tag span { width: 7px; height: 7px; background: var(--orange); }
.feature-panel__body { display: grid; gap: 12px; position: relative; z-index: 1; width: min(350px, 85%); margin-top: 42px; }
.feature-panel__line { display: block; width: 70%; height: 12px; background: rgba(229,237,239,.23); border-radius: 20px; }
.feature-panel__line--long { width: 100%; height: 20px; background: rgba(229,237,239,.51); }
.feature-panel__line--short { width: 45%; }
.feature-panel__corner { position: absolute; z-index: 1; width: 62px; height: 62px; right: 26px; bottom: 25px; border: 8px solid rgba(244,153,85,.9); border-left-color: transparent; border-bottom-color: transparent; transform: rotate(45deg); }
.empty-card { display: flex; flex-direction: column; min-height: 255px; padding: 25px 27px 22px; background: white; border: 1px solid #e4e9e9; border-radius: 5px; }
.empty-card--accent { background: #f4f1ed; }
.empty-card__top { display: flex; justify-content: space-between; align-items: flex-start; }
.card-icon { width: 33px; height: 33px; background: var(--steel); clip-path: polygon(0 0,100% 0,70% 45%,100% 100%,0 100%,28% 50%); }
.card-icon--orange { background: var(--orange); }
.card-icon--slate { background: var(--steel); }
.card-icon--wine { background: var(--wine); }
.card-number { color: #a1abb0; font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.empty-card__placeholder { display: grid; gap: 11px; margin: 35px 0 auto; }
.empty-card__placeholder span, .empty-card__wide-placeholder span { display: block; height: 10px; border-radius: 30px; background: #dfe5e7; }
.empty-card__placeholder span:nth-child(1) { width: 58%; height: 15px; background: #bac7ce; }
.empty-card__placeholder span:nth-child(2) { width: 88%; }
.empty-card__placeholder span:nth-child(3) { width: 70%; }
.empty-card__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 25px; padding-top: 16px; border-top: 1px solid #e0e6e6; color: #74838b; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.empty-card__foot span { color: #a9b6bb; font-size: 19px; font-weight: 400; }
.empty-card--wide { grid-column: 1 / -1; min-height: 180px; }
.empty-card__wide-placeholder { display: grid; grid-template-columns: 1.5fr 1fr .65fr .8fr; gap: 18px; margin: 24px 0 auto; }
.empty-card__wide-placeholder span { height: 39px; background: #edf1f1; }
.workspace-footer { display: flex; justify-content: space-between; margin-top: 34px; padding-top: 20px; border-top: 1px solid #e3e9e9; color: #7e8b94; font-size: 11px; }

@media (max-width: 1000px) {
  .login-layout { grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr); }
  .brand-label { display: none; }
  .workspace-layout { grid-template-columns: 210px minmax(0, 1fr); }
  .sidebar__brand .brand-logo { width: 170px; }
  .workspace-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 800px) {
  .login-layout { display: block; min-height: 100vh; }
  .login-brand { min-height: 270px; padding: 23px 25px 26px; }
  .login-brand__top .brand-logo { width: 185px; }
  .login-brand__bottom p { margin: 9px 0 13px; font-size: 30px; }
  .login-brand__bottom .eyebrow { font-size: 9px; }
  .brand-rule { width: 45px; height: 3px; }
  .brand-art { inset: 13% -8% 8% 36%; opacity: .65; }
  .brand-art__grid { background-size: 34px 34px; }
  .login-content { min-height: calc(100vh - 270px); padding: 18px 25px 22px; }
  .prototype-switch { align-self: flex-start; gap: 14px; font-size: 11px; }
  .prototype-switch__label { display: none; }
  .login-card { width: 100%; padding: 49px 0 36px; }
  .login-card h1 { font-size: clamp(43px, 11vw, 62px); }
  .login-intro { margin-bottom: 32px; font-size: 14px; }
  .login-form input { height: 52px; margin-bottom: 20px; }
  .primary-button { height: 54px; }
  .login-content__footer { margin-top: auto; }

  .workspace-layout { display: block; }
  .sidebar { display: none; }
  .workspace-header { height: 69px; padding: 0 22px; }
  .workspace-header__logo { display: block; width: 120px; height: auto; }
  .workspace-header__crumb, .employee-label { display: none; }
  .workspace-header__right { gap: 9px; }
  .preview-badge { height: 23px; margin: 0; padding: 0 7px; font-size: 8px; }
  .employee-avatar { width: 30px; height: 30px; }
  .workspace-content { padding: 34px 20px 22px; }
  .workspace-heading { display: block; margin-bottom: 24px; }
  .workspace-heading h1 { font-size: clamp(36px, 10vw, 48px); }
  .workspace-heading p { font-size: 13px; }
  .text-link { display: inline-block; margin-top: 19px; }
  .mobile-nav { display: flex; gap: 8px; margin: 0 -20px 19px; padding: 0 20px 14px; overflow-x: auto; scrollbar-width: none; }
  .mobile-nav::-webkit-scrollbar { display: none; }
  .mobile-nav__item { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; min-width: 111px; height: 40px; padding: 0 12px; background: #fff; border: 1px solid #e2e9e9; border-radius: 3px; }
  .mobile-nav__item i { width: 10px; height: 10px; background: var(--steel); transform: rotate(45deg); }
  .mobile-nav__item b { width: 54px; height: 5px; background: #cad4d8; border-radius: 20px; }
  .mobile-nav__item.is-current { background: var(--graphite); border-color: var(--graphite); }
  .mobile-nav__item.is-current i { background: var(--orange); }
  .mobile-nav__item.is-current b { background: #e0e8e8; }
  .workspace-grid { display: block; }
  .workspace-grid > * { margin-bottom: 13px; }
  .feature-panel { min-height: 234px; padding: 23px; }
  .feature-panel__body { margin-top: 40px; }
  .empty-card { min-height: 215px; padding: 22px; }
  .empty-card--wide { min-height: 164px; }
  .empty-card__wide-placeholder { grid-template-columns: 1fr 1fr; gap: 9px; }
  .empty-card__wide-placeholder span { height: 23px; }
  .workspace-footer { display: block; margin-top: 12px; }
  .workspace-footer span { display: block; margin-top: 6px; }
}

@media (prefers-reduced-motion: no-preference) {
  a, input { transition: border-color .2s ease, color .2s ease, box-shadow .2s ease; }
}
