@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700&display=swap");
:root {
  --ink: #10241d;
  --cream: #f4f0e6;
  --paper: #fffdf7;
  --mint: #b9f6d2;
  --orange: #ef6b3b;
  --line: #cfc9bc;
  --muted: #6f766f;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Manrope, sans-serif;
}
button,
input {
  font: inherit;
}
header {
  height: 76px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  font: 12px "DM Mono";
  letter-spacing: 0.08em;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.brand > i {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--mint);
  font-style: normal;
  font-size: 16px;
}
.brand b {
  color: var(--orange);
  font-weight: 400;
}
.privacy {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
}
.privacy i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #35b878;
  box-shadow: 0 0 0 4px #35b87820;
}
main {
  max-width: 1180px;
  margin: auto;
  padding: 74px 24px 100px;
}
.hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 58px;
}
.hero > p {
  max-width: 390px;
  line-height: 1.7;
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}
.eyebrow {
  font: 500 11px/1 "DM Mono";
  letter-spacing: 0.16em;
  color: var(--orange);
  margin: 0 0 16px;
}
h1 {
  font-size: clamp(45px, 6.2vw, 78px);
  line-height: 0.96;
  letter-spacing: -0.055em;
  margin: 0;
  font-weight: 600;
}
h1 em {
  font-family: Georgia, serif;
  font-weight: 400;
  color: var(--orange);
}
.workspace {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  box-shadow: 0 18px 60px #263c2d13;
}
.entry,
.result {
  padding: 45px 48px;
}
.entry {
  background: var(--paper);
}
.result {
  background: var(--ink);
  color: #fff;
}
.mobileSaveArea {
  display: none;
}
.title {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 36px;
}
.title > span {
  font: 11px "DM Mono";
  border: 1px solid var(--line);
  padding: 6px 7px;
  border-radius: 50%;
}
.title.light > span {
  border-color: #ffffff44;
}
.title .eyebrow {
  margin-bottom: 7px;
}
.title h2,
.historyHead h2 {
  font-size: 25px;
  letter-spacing: -0.03em;
  margin: 0;
}
.switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #e9e5da;
  padding: 4px;
  margin: -6px 0 27px;
}
.switch button {
  border: 0;
  background: transparent;
  padding: 11px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.switch .active {
  background: var(--ink);
  color: #fff;
}
.field {
  display: block;
  min-width: 0;
  margin-bottom: 22px;
}
.field > span {
  display: flex;
  justify-content: space-between;
  margin-bottom: 9px;
  font: 500 11px "DM Mono";
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.field small {
  color: #969b95;
}
.field input,
.field select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border: 1px solid #d8d3c8;
  background: #faf8f1;
  padding: 15px 16px;
  font: 500 15px "DM Mono";
  color: var(--ink);
  outline: none;
}
.field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 50%,
    calc(100% - 15px) 50%;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  cursor: pointer;
}
input[type="date"] {
  display: block;
  inline-size: 100%;
}
.field input:focus,
.field select:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px #10241d10;
}
.money {
  position: relative;
}
.money i {
  position: absolute;
  left: 17px;
  top: 50%;
  transform: translateY(-50%);
  font: 16px "DM Mono";
  color: #858a84;
  font-style: normal;
}
.money input {
  padding-left: 35px;
}
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  margin: 2px 0 22px;
  border-block: 1px solid #e2ddd2;
  cursor: pointer;
}
.toggle > span {
  display: flex;
  flex-direction: column;
}
.toggle b {
  font-size: 13px;
}
.toggle small {
  color: var(--muted);
  margin-top: 3px;
}
.toggle input {
  display: none;
}
.toggle > i {
  width: 43px;
  height: 24px;
  border-radius: 20px;
  background: #c9c7bf;
  position: relative;
}
.toggle > i:after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.2s;
}
.toggle input:checked + i {
  background: var(--orange);
}
.toggle input:checked + i:after {
  transform: translateX(19px);
}
.save {
  width: 100%;
  border: 0;
  background: var(--orange);
  color: white;
  padding: 17px 19px;
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  cursor: pointer;
}
.save:hover {
  background: #d95529;
}
.save:disabled {
  background: #bd6d50;
  cursor: wait;
  opacity: 0.9;
}
.save .spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #ffffff66;
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.cancelEdit {
  display: block;
  margin: 12px auto 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 600 11px "DM Mono";
  cursor: pointer;
}
.cancelEdit:hover {
  color: var(--orange);
}
.saved {
  font-size: 12px;
  height: 16px;
  margin: 10px 0 -18px;
}
.gross {
  border-bottom: 1px solid #ffffff24;
  padding-bottom: 26px;
}
.gross span,
.gross small {
  display: block;
  color: #aebbb5;
  font-size: 12px;
}
.gross strong {
  display: block;
  font: 500 44px/1.2 "DM Mono";
  margin: 8px 0 4px;
}
.tipSources {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  border-bottom: 1px solid #ffffff24;
  padding-bottom: 26px;
}
.tipSources > div + div {
  border-left: 1px solid #ffffff24;
  padding-left: 24px;
}
.tipSources span,
.tipSources small {
  display: block;
  color: #aebbb5;
  font-size: 11px;
}
.tipSources strong {
  display: block;
  font: 500 25px/1.2 "DM Mono";
  margin: 8px 0 4px;
}
.roles {
  padding: 18px 0;
}
.adjustBar {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ffffff24;
  padding: 0 0 13px !important;
  margin-bottom: 5px;
}
.adjustBar > span {
  color: #8fa098;
  font: 10px "DM Mono";
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.adjustBar button {
  border: 1px solid #ffffff38;
  background: transparent;
  color: white;
  padding: 6px 8px;
  font: 10px "DM Mono";
  cursor: pointer;
  margin-left: 6px;
}
.adjustBar button:hover {
  border-color: var(--mint);
  color: var(--mint);
}
.tipoutEdit {
  position: relative;
  width: 92px;
}
.tipoutEdit i {
  position: absolute;
  left: 9px;
  top: 50%;
  transform: translateY(-50%);
  color: #8fa098;
  font: 12px "DM Mono";
  font-style: normal;
}
.tipoutEdit input {
  width: 100%;
  border: 1px solid #ffffff45;
  background: #ffffff0d;
  color: white;
  padding: 7px 7px 7px 21px;
  text-align: right;
  font: 12px "DM Mono";
  outline: none;
}
.tipoutEdit input:focus {
  border-color: var(--mint);
}
.roles > div {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
}
.roles span {
  font-size: 13px;
}
.roles small {
  font: 10px "DM Mono";
  color: #8fa098;
  margin-left: 8px;
}
.roles b,
.bottom b {
  font: 500 13px "DM Mono";
}
.bottom {
  border-top: 1px solid #ffffff24;
  padding-top: 19px;
}
.bottom > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 5px 0;
}
.bottom .net {
  margin-top: 12px;
  background: var(--mint);
  color: var(--ink);
  padding: 19px;
}
.net strong {
  font: 500 25px "DM Mono";
}
.bottom > p {
  text-align: center;
  font-size: 11px;
  color: #8fa098;
}
.history {
  padding-top: 95px;
}
.historyHead {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 25px;
}
.historyHead .eyebrow {
  margin-bottom: 8px;
}
.paycheckCard {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  background: var(--mint);
  padding: 28px 32px;
  margin-bottom: 52px;
}
.paycheckCard > div:last-child {
  text-align: right;
}
.paycheckCard .eyebrow {
  color: #39705a;
  margin-bottom: 8px;
}
.paycheckCard b {
  display: block;
  font-size: 17px;
}
.paycheckCard strong {
  display: block;
  font: 500 30px "DM Mono";
}
.paycheckCard span,
.paycheckCard small {
  display: block;
  color: #527567;
  font-size: 11px;
  margin-top: 5px;
}
.paycheckCard .cashSeparate {
  margin-top: 14px;
}
.paycheckCard .cashSeparate b {
  display: inline;
  font: 600 12px "DM Mono";
  color: var(--ink);
}
.periodGroup {
  margin-bottom: 52px;
}
.periodHead {
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding: 0 12px 14px;
  cursor: pointer;
  list-style: none;
}
.periodHead::-webkit-details-marker {
  display: none;
}
.periodHead:hover b {
  color: var(--orange);
}
.periodLabel {
  display: flex;
  align-items: center;
  gap: 12px;
}
.periodLabel i {
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
  transform: rotate(-45deg);
  transition: transform 0.2s ease;
}
.periodGroup[open] .periodLabel i {
  transform: rotate(45deg) translate(-2px, -2px);
}
.periodHead > div:last-child {
  text-align: right;
}
.payBreakdown {
  display: flex;
  justify-content: flex-end;
  gap: 28px;
}
.payBreakdown > div {
  min-width: 108px;
}
.periodHead span {
  display: block;
  color: var(--muted);
  font: 10px "DM Mono";
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.periodHead b {
  font-size: 16px;
}
.periodHead strong {
  font: 500 19px "DM Mono";
}
.periodHead small {
  display: block;
  color: var(--muted);
  font: 11px "DM Mono";
  margin-top: 5px;
}
.summary {
  display: flex;
  gap: 28px;
}
.stat {
  text-align: right;
}
.stat span,
.records article > div > span {
  display: block;
  font: 10px "DM Mono";
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}
.stat b,
.records b {
  font: 500 14px "DM Mono";
}
.records {
  border-top: 1px solid var(--ink);
}
.records article {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 22px 12px;
  border-bottom: 1px solid var(--line);
}
.records article > div:first-child b {
  font-family: Manrope;
  font-weight: 700;
}
.records article small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.records button {
  border: 0;
  background: transparent;
  color: #9a968e;
  font-size: 18px;
  cursor: pointer;
}
.records .entryActions {
  display: flex;
  gap: 7px;
}
.records .entryActions button:first-child {
  font-size: 15px;
}
.records .entryActions button:hover {
  color: var(--orange);
}
.empty {
  text-align: center;
  color: var(--muted);
  padding: 60px;
  border-bottom: 1px solid var(--line);
}
footer {
  height: 85px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  font: 10px "DM Mono";
  letter-spacing: 0.1em;
  color: var(--muted);
}
@media (max-width: 800px) {
  main {
    padding-top: 48px;
  }
  .hero {
    display: block;
  }
  .hero > p {
    margin-top: 28px;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .desktopSave {
    display: none;
  }
  .mobileSaveArea {
    display: block;
    background: var(--paper);
    padding: 22px 26px 30px;
  }
  .entry,
  .result {
    padding: 34px 26px;
  }
  .records article {
    grid-template-columns: 1fr 1fr;
  }
  .summary {
    display: none;
  }
}
@media (max-width: 500px) {
  header {
    height: 64px;
  }
  .privacy {
    font-size: 0;
  }
  .pair {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .tipSources {
    gap: 14px;
  }
  .tipSources > div + div {
    padding-left: 14px;
  }
  .tipSources strong {
    font-size: 21px;
  }
  .entry,
  .result {
    padding: 30px 20px;
  }
  .history {
    padding-top: 65px;
  }
  .records article > div:nth-child(4) {
    display: none;
  }
  .paycheckCard {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .paycheckCard > div:last-child {
    text-align: left;
    border-top: 1px solid #10241d22;
    padding-top: 18px;
  }
  .periodHead {
    align-items: start;
  }
  .payBreakdown {
    gap: 14px;
  }
  .payBreakdown > div {
    min-width: 0;
  }
}
.account {
  border: 0;
  background: transparent;
  color: var(--orange);
  cursor: pointer;
  font: 600 11px "DM Mono";
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.account span {
  color: var(--muted);
  margin-right: 14px;
  text-transform: none;
}
.accountActions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.inviteNav {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: white;
  padding: 9px 12px;
  cursor: pointer;
  font: 600 10px "DM Mono";
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.installNav {
  border: 1px solid var(--orange);
  background: transparent;
  color: var(--orange);
  padding: 9px 12px;
  cursor: pointer;
  font: 600 10px "DM Mono";
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.installNav:hover {
  background: var(--orange);
  color: white;
}
.installGuide {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 36px;
  margin: -20px 0 46px;
  padding: 24px 28px;
  background: var(--mint);
  border-left: 5px solid var(--orange);
}
.installGuide .eyebrow {
  margin-bottom: 8px;
}
.installGuide h2 {
  margin: 0 0 8px;
  font-size: 20px;
}
.installGuide p:last-child {
  margin: 0;
  color: #315045;
  font-size: 13px;
  line-height: 1.55;
}
.installGuide > button {
  flex: none;
  border: 0;
  background: var(--ink);
  color: white;
  padding: 11px 16px;
  cursor: pointer;
  font: 600 10px "DM Mono";
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.inviteNav:hover {
  color: var(--mint);
}
.invitePanel {
  display: grid;
  grid-template-columns: 1fr 1fr 0.9fr;
  gap: 44px;
  background: var(--paper);
  border-top: 4px solid var(--orange);
  padding: 34px 38px;
  margin: -34px 0 64px;
  box-shadow: 0 18px 60px #263c2d13;
}
.invitePanel h2 {
  margin: 0 0 10px;
  font-size: 27px;
  letter-spacing: -0.035em;
}
.inviteIntro > p:last-child {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}
.invitePanel form .field {
  margin-bottom: 12px;
}
.inviteMessage {
  color: var(--muted);
  font-size: 12px;
  margin: 10px 0 0;
}
.inviteList > span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font: 500 10px "DM Mono";
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.inviteList > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.inviteList b {
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
}
.inviteList small {
  color: #39705a;
  font: 10px "DM Mono";
}
.inviteList .resendInvite {
  border: 0;
  background: transparent;
  color: var(--orange);
  cursor: pointer;
  font: 600 10px "DM Mono";
  letter-spacing: 0.05em;
  padding: 0;
  text-transform: uppercase;
}
.inviteList .resendInvite:hover {
  text-decoration: underline;
}
.inviteList .resendInvite:disabled {
  cursor: wait;
  opacity: 0.55;
}
.inviteList p {
  color: var(--muted);
  font-size: 12px;
}
.authShell {
  min-height: calc(100vh - 76px);
  display: grid;
  place-items: center;
  padding: 48px 24px;
}
.authCard {
  width: min(100%, 560px);
  background: var(--paper);
  padding: 54px;
  box-shadow: 0 18px 60px #263c2d13;
}
.authCard h1 {
  font-size: clamp(42px, 6vw, 66px);
  margin-bottom: 28px;
}
.authCard > p:not(.eyebrow):not(.authError) {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 30px;
}
.authCard > small {
  display: block;
  color: var(--muted);
  text-align: center;
  margin-top: 22px;
}
.checkEmail {
  background: var(--mint);
  padding: 24px;
  display: grid;
  gap: 8px;
}
.checkEmail span {
  color: #315045;
  font-size: 13px;
}
.checkEmail small {
  color: #527567;
  font-size: 11px;
  line-height: 1.55;
}
.checkEmail button {
  border: 0;
  background: none;
  color: var(--ink);
  text-align: left;
  padding: 8px 0 0;
  text-decoration: underline;
  cursor: pointer;
}
.codeForm {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}
.codeForm input {
  width: 100%;
  border: 1px solid #10241d44;
  background: var(--paper);
  padding: 15px 16px;
  color: var(--ink);
  font: 600 24px "DM Mono";
  letter-spacing: 0.28em;
  text-align: center;
  outline: none;
}
.codeForm input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px #10241d10;
}
.checkEmail .codeForm .save {
  color: white;
  text-align: left;
  padding: 16px 18px;
  text-decoration: none;
}
.codeActions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.authError {
  color: #b63b24;
  font-size: 13px;
}
.rateHint {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  margin: -12px 0 22px;
}
@media (max-width: 500px) {
  .authCard {
    padding: 34px 24px;
  }
  .account span {
    display: none;
  }
  .accountActions {
    gap: 8px;
  }
  .inviteNav {
    padding: 8px;
  }
  .installNav {
    padding: 8px;
  }
  .installGuide {
    display: block;
    margin: -20px 0 36px;
    padding: 22px;
  }
  .installGuide > button {
    margin-top: 16px;
  }
  .invitePanel {
    padding: 26px 22px;
  }
}

@media (max-width: 800px) {
  .invitePanel {
    grid-template-columns: 1fr;
    gap: 26px;
    margin-top: -12px;
  }
}
