:root {
  --paper: #f6f5f1;
  --ink: #183b30;
  --muted: #68776f;
  --line: #dfe4dc;
  --green: #007c48;
  --soft: #edf3ec;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    14px/1.55 Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
}
button,
input,
select {
  font: inherit;
}
a {
  color: var(--green);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid #78ae94;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.025em;
}
h1 {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 600;
}
h2 {
  font-size: 20px;
  font-weight: 600;
}
h3 {
  font-size: 17px;
}
.muted,
.subtitle,
.help {
  color: var(--muted);
}
.eyebrow {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  margin: 0 0 10px;
  text-transform: uppercase;
}
.subtitle {
  font-size: 15px;
  margin-top: 9px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.skip-link {
  position: fixed;
  top: -60px;
  left: 15px;
  z-index: 100;
  background: white;
  padding: 10px;
}
.skip-link:focus {
  top: 8px;
}
.site-header {
  background: white;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  max-width: 1360px;
  margin: auto;
  min-height: 73px;
  padding: 0 42px;
  display: flex;
  align-items: center;
  gap: 42px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  color: var(--ink);
}
.brand:hover {
  text-decoration: none;
}
.brand b {
  font-size: 28px;
  font-weight: 850;
  letter-spacing: -2px;
}
.brand > span {
  border-left: 1px solid var(--line);
  padding-left: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}
.brand strong {
  font-weight: 500;
}
.header-inner nav {
  display: flex;
  align-self: stretch;
  gap: 28px;
  align-items: center;
}
.header-inner nav a {
  display: flex;
  align-items: center;
  align-self: stretch;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-weight: 550;
  font-size: 13px;
}
.header-inner nav a.active {
  color: var(--ink);
  border-color: var(--green);
}
.account {
  margin-left: auto;
  position: relative;
}
.account summary {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  list-style: none;
}
.account summary::-webkit-details-marker {
  display: none;
}
.avatar {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  background: var(--soft);
  color: var(--green);
}
.account-label {
  font-size: 12px;
}
.account-menu {
  position: absolute;
  right: 0;
  top: 46px;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 32px #183b3012;
}
.account-menu strong {
  display: block;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.account-menu form {
  margin-top: 15px;
}
.main {
  max-width: 1360px;
  padding: 40px 42px 20px;
  margin: auto;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 10px 16px;
  min-height: 42px;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.4;
  text-decoration: none;
}
.button:hover {
  text-decoration: none;
}
.button-primary {
  background: var(--green);
  color: white;
}
.button-primary:hover {
  background: #00673b;
}
.button-outline {
  background: white;
  color: var(--ink);
  border-color: var(--line);
}
.button-outline:hover {
  background: var(--soft);
  border-color: #becdc0;
}
.button-small {
  min-height: 34px;
  padding: 7px 12px;
  font-size: 12px;
}
.text-link {
  font-size: 12px;
  font-weight: 600;
}
.text-button {
  border: 0;
  background: transparent;
  color: var(--green);
  padding: 5px 0;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
}
.text-button:hover {
  text-decoration: underline;
}
.text-button.muted {
  color: var(--muted);
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.stat {
  display: flex;
  flex-direction: column;
  padding: 21px 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
}
.stat:hover {
  text-decoration: none;
  border-color: #9bb6a5;
}
.stat > span {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
}
.stat > strong {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 600;
  margin: 10px 0 5px;
  letter-spacing: -1px;
}
.stat > small {
  font-size: 11px;
  color: var(--muted);
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.dot.pending {
  background: #bc8b38;
}
.dot.completed {
  background: var(--green);
}
.dot.needsAttention {
  background: #a56b51;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  overflow: hidden;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 25px 26px 19px;
}
.panel-heading p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}
.filters {
  display: flex;
  gap: 10px;
  padding: 0 26px 22px;
  align-items: center;
}
.search-label {
  display: flex;
  max-width: 440px;
  flex: 1;
}
input,
select {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  padding: 10px 12px;
  min-width: 0;
  width: 100%;
}
input::placeholder {
  color: #87938b;
  font-size: 13px;
}
.filters select {
  width: auto;
  min-width: 164px;
}
.table-scroll {
  position: relative;
  width: 100%;
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
}
th {
  padding: 12px 20px;
  background: #fafbf8;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.04em;
  font-weight: 650;
  text-transform: uppercase;
  white-space: nowrap;
}
td {
  padding: 19px 20px;
  border-bottom: 1px solid #edf0eb;
  font-size: 12px;
  vertical-align: middle;
}
th:first-child,
td:first-child {
  padding-left: 26px;
}
.recipient {
  font-size: 12px;
  font-weight: 600;
  display: block;
  overflow-wrap: anywhere;
  min-width: 165px;
}
.form-id {
  display: block;
  color: #839087;
  font-size: 10px;
  max-width: 255px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 3px;
}
.form-label {
  white-space: nowrap;
}
.badge {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 600;
  border-radius: 20px;
  padding: 4px 9px;
}
.badge.pending {
  color: #8c6a29;
  background: #faf3e5;
}
.badge.complete {
  color: #217347;
  background: #ecf5ed;
}
.badge.neutral {
  color: #68776f;
  background: #f0f2ef;
}
.badge.attention {
  color: #a25936;
  background: #fcf0e9;
}
.date {
  white-space: nowrap;
}
.date small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}
.row-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  white-space: nowrap;
  gap: 1px;
}
.row-actions .text-button {
  font-size: 11px;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 26px;
  color: var(--muted);
  font-size: 11px;
  gap: 20px;
}
.pagination > div {
  display: flex;
  align-items: center;
  gap: 13px;
}
.disabled {
  pointer-events: none;
  opacity: 0.4;
}
.empty-state {
  text-align: center;
  padding: 44px 20px 50px;
}
.empty-state p {
  color: var(--muted);
  margin: 9px 0 20px;
}
.empty-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--soft);
  color: var(--green);
  border-radius: 10px;
  font-size: 23px;
  margin: 0 auto 18px;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 25px;
  padding-bottom: 8px;
  font-size: 10px;
  color: #8a958d;
}
dialog {
  color: var(--ink);
  width: min(580px, calc(100% - 32px));
  max-height: 90vh;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 25px 90px #183b302b;
  overflow: auto;
}
dialog::backdrop {
  background: #142c2566;
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 22px;
}
.close-button {
  background: transparent;
  border: 0;
  font-size: 27px;
  line-height: 1;
  color: var(--muted);
  padding: 2px 5px;
}
.form-options {
  border: 0;
  padding: 0;
  margin: 0 0 25px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.form-options label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 15px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
  margin: 0;
}
.form-options label:has(:checked) {
  border-color: var(--green);
  background: #f3f8f2;
}
.form-options input {
  width: 15px;
  margin: 4px 0 0;
  accent-color: var(--green);
  flex-shrink: 0;
}
.form-options b {
  font-size: 13px;
}
.form-options small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 3px;
}
#send-form > label {
  font-size: 12px;
  font-weight: 600;
  display: block;
  margin: 18px 0 7px;
}
.optional {
  font-weight: 400;
  color: var(--muted);
  margin-left: 4px;
}
.search-row {
  display: flex;
  gap: 8px;
}
.search-row input {
  flex: 1;
}
.deal-results {
  max-height: 175px;
  overflow: auto;
  margin-top: 7px;
}
.deal-result {
  display: block;
  background: white;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  text-align: left;
  width: 100%;
  font-size: 12px;
  color: var(--ink);
}
.deal-result:hover {
  background: var(--soft);
}
.deal-result small {
  display: block;
  color: var(--muted);
}
.deal-results p {
  font-size: 12px;
  padding: 8px;
  color: var(--muted);
}
.selected-deal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--soft);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 12px;
  margin-top: 10px;
  gap: 12px;
}
.help {
  font-size: 11px;
  margin-top: 10px;
}
.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.form-status {
  font-size: 13px;
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f5f7f5;
  overflow-wrap: anywhere;
}
.form-status strong {
  display: block;
  font-size: 15px;
}
.form-status p {
  margin: 7px 0 0;
  line-height: 1.6;
}
.form-status small {
  display: block;
  margin-top: 12px;
}
.form-status[data-tone="error"] {
  color: #a33f32;
  background: #fff4f1;
  border-color: #efc4ba;
}
.form-status[data-tone="success"] {
  color: #155c3d;
  background: #edf8f0;
  border-color: #b6ddc5;
}
.form-status[data-tone="warning"] {
  color: #785213;
  background: #fff9e9;
  border-color: #e7d498;
}
.form-status [hidden] {
  display: none;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  padding: 15px 22px;
  background: var(--ink);
  color: white;
  box-shadow: 0 5px 20px #183b302b;
  border-radius: 7px;
  font-size: 13px;
  z-index: 30;
}
.login-page .header-inner {
  justify-content: space-between;
}
.login-main {
  max-width: 1170px;
  margin: 0 auto;
  min-height: calc(100vh - 140px);
  display: grid;
  grid-template-columns: 1fr 410px;
  gap: 100px;
  align-items: center;
  padding: 70px 42px;
}
.login-intro h1 {
  font-size: clamp(34px, 4.5vw, 58px);
  line-height: 1.14;
  margin: 20px 0 22px;
  font-weight: 550;
  letter-spacing: -0.045em;
}
.login-intro > p:not(.eyebrow) {
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 420px;
}
.login-features {
  display: flex;
  gap: 23px;
  margin-top: 38px;
  font-size: 11px;
  color: var(--muted);
}
.login-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 38px 32px;
  box-shadow: 0 8px 34px #183b3005;
}
.login-monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--soft);
  color: var(--green);
  font-size: 18px;
  letter-spacing: -1.5px;
  font-weight: 850;
  width: 52px;
  height: 52px;
  border-radius: 11px;
  margin-bottom: 26px;
}
.login-card h2 {
  font-size: 23px;
  margin-bottom: 12px;
}
.login-card > p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.75;
}
.google-signin {
  width: 100%;
  margin-top: 28px;
  justify-content: space-between;
  padding: 13px 16px;
  font-size: 13px;
}
.google-mark {
  background: white;
  color: var(--green);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
}
.login-card .login-help {
  font-size: 11px;
  margin-top: 23px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.login-footer {
  text-align: center;
  color: #8a958d;
  font-size: 11px;
  padding: 20px;
}
.notice {
  padding: 12px;
  border-radius: 6px;
  margin-top: 15px;
}
.login-card .notice.error {
  color: #a33f32;
  background: #fcf0e9;
}
.login-card .notice.success {
  color: var(--green);
  background: var(--soft);
}
@media (max-width: 1000px) {
  .header-inner {
    gap: 26px;
    padding: 0 24px;
  }
  .main {
    padding: 30px 24px 20px;
  }
  .stat {
    padding: 18px;
  }
  .login-main {
    gap: 45px;
    grid-template-columns: 1fr 370px;
    padding: 50px 30px;
  }
  .login-features {
    flex-wrap: wrap;
    gap: 14px;
  }
}
@media (max-width: 700px) {
  .header-inner {
    padding: 12px 18px;
    min-height: 67px;
    gap: 18px;
    flex-wrap: wrap;
  }
  .brand b {
    font-size: 25px;
  }
  .header-inner nav {
    order: 3;
    width: 100%;
    gap: 22px;
    border-top: 1px solid var(--line);
    padding-top: 9px;
  }
  .header-inner nav a {
    font-size: 12px;
    padding-bottom: 3px;
  }
  .account-label {
    display: none;
  }
  .main {
    padding: 26px 16px 16px;
  }
  .page-head {
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 23px;
  }
  .page-head .button {
    font-size: 11px;
    padding: 9px 12px;
    min-height: 38px;
    margin-top: 24px;
  }
  h1 {
    font-size: 27px;
  }
  .subtitle {
    font-size: 12px;
  }
  .eyebrow {
    font-size: 9px;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 22px;
  }
  .stat {
    padding: 16px;
  }
  .stat > span {
    font-size: 11px;
  }
  .stat > strong {
    font-size: 28px;
    margin-top: 8px;
  }
  .stat > small {
    font-size: 10px;
  }
  .panel-heading {
    padding: 20px 16px 17px;
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .panel-heading h2 {
    font-size: 18px;
  }
  .filters {
    padding: 0 16px 18px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .search-label {
    flex-basis: 100%;
    max-width: none;
  }
  .filters > label:not(.search-label) {
    flex: 1;
  }
  .filters select {
    width: 100%;
  }
  th,
  td {
    padding: 14px 16px;
  }
  .pagination {
    padding: 15px 16px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .pagination > div {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }
  .page-footer {
    gap: 20px;
  }
  .page-footer span:last-child {
    text-align: right;
  }
  .login-main {
    display: block;
    min-height: auto;
    padding: 36px 22px;
  }
  .login-intro h1 {
    font-size: 38px;
    margin: 14px 0 17px;
  }
  .login-intro > p:not(.eyebrow) {
    font-size: 14px;
  }
  .login-features {
    margin: 20px 0 30px;
  }
  .login-card {
    padding: 28px 24px;
    max-width: 440px;
    margin: auto;
  }
  .login-intro {
    max-width: 440px;
    margin: auto;
  }
  .login-page .header-inner {
    flex-wrap: nowrap;
  }
  .login-footer {
    padding-top: 0;
  }
  dialog {
    padding: 23px 20px;
  }
  .form-options {
    gap: 8px;
  }
  .form-options label {
    padding: 12px 8px;
    gap: 6px;
  }
  .form-options b {
    font-size: 12px;
  }
}
