:root {
  --navy-950: #07182c;
  --navy-900: #0d2340;
  --navy-800: #14365e;
  --navy-700: #1e4f84;
  --blue: #2563eb;
  --gold: #c99845;
  --ink: #142033;
  --muted: #66758b;
  --line: #dce4ee;
  --surface: #fff;
  --canvas: #f2f5f9;
  --ok: #07845a;
  --warn: #bd7414;
  --bad: #c53932;
  --shadow: 0 18px 50px rgba(8, 31, 61, 0.09);
  --radius: 17px;
}
* {
  box-sizing: border-box;
}
html {
  background: var(--canvas);
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font:
    14px/1.55 -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
}
.hidden {
  display: none !important;
}
button {
  height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--navy-800);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: 0.16s;
}
button:hover:not(:disabled) {
  transform: translateY(-1px);
  background: var(--navy-700);
  box-shadow: 0 6px 16px rgba(13, 35, 64, 0.16);
}
button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}
.primary {
  background: var(--navy-800);
}
.primary-large {
  height: 47px;
  padding: 0 24px;
  background: var(--navy-900);
  font-size: 15px;
}
.secondary {
  border-color: #d2dce8;
  background: #fff;
  color: #34485f;
}
.secondary:hover:not(:disabled) {
  background: #f6f8fb;
  box-shadow: none;
}
.danger {
  border-color: #f0d1cf;
  background: #fff6f5;
  color: var(--bad);
}
.block {
  width: 100%;
}
.right {
  text-align: right !important;
}
.auth-screen {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1.2fr) minmax(390px, 0.8fr);
  align-items: center;
  gap: 9vw;
  padding: 8vh 9vw;
  color: #fff;
  background: radial-gradient(
      circle at 22% 15%,
      rgba(46, 105, 170, 0.37),
      transparent 35%
    ),
    linear-gradient(128deg, var(--navy-950), #102e50 66%, #1e578d);
}
.auth-brand {
  max-width: 650px;
}
.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.27);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 850;
  letter-spacing: 1px;
}
.brand-mark.large {
  width: 58px;
  height: 58px;
  margin-bottom: 32px;
  border-radius: 15px;
  font-size: 17px;
}
.eyebrow,
.kicker {
  display: block;
  color: #8ea9c7;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.4px;
}
.auth-brand h1 {
  margin: 10px 0 14px;
  font-size: 42px;
  line-height: 1.18;
}
.auth-brand > p {
  max-width: 580px;
  margin: 0;
  color: #cad8e7;
  font-size: 16px;
}
.auth-points {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 30px;
  color: #e4edf6;
  font-size: 12px;
}
.auth-points span::first-letter {
  color: #4bd5a0;
}
.auth-card {
  width: 100%;
  max-width: 470px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.26);
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 27px;
  padding: 4px;
  border-radius: 10px;
  background: #eef2f7;
}
.auth-tabs button {
  height: 38px;
  background: transparent;
  color: #64758a;
}
.auth-tabs button.active {
  background: #fff;
  color: var(--navy-900);
  box-shadow: 0 3px 10px rgba(12, 39, 70, 0.1);
}
.auth-form h2 {
  margin: 0 0 4px;
  font-size: 23px;
}
.auth-form > p {
  margin: 0 0 22px;
  color: var(--muted);
}
label {
  color: #42536a;
  font-size: 12px;
  font-weight: 700;
}
.auth-form label,
.modal-form label {
  display: block;
  margin-bottom: 15px;
}
.auth-form input,
.modal-form input {
  display: block;
  width: 100%;
  height: 44px;
  margin-top: 6px;
  padding: 0 13px;
  border: 1px solid #cfd9e6;
  border-radius: 9px;
  background: #fbfcfe;
  color: var(--ink);
  outline: none;
}
.auth-form input:focus,
.modal-form input:focus {
  border-color: #4c7fc4;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.09);
}
.form-message {
  min-height: 20px;
  margin-top: 10px;
  color: var(--bad);
  font-size: 12px;
}
.form-message.ok {
  color: var(--ok);
}
.auth-note {
  margin: 18px 0 0;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: #7b899b;
  font-size: 11px;
}
.app-header {
  color: #fff;
  background: linear-gradient(
    118deg,
    var(--navy-950),
    var(--navy-800) 68%,
    #245b94
  );
  box-shadow: 0 4px 24px rgba(5, 24, 46, 0.12);
}
.header-inner {
  max-width: 1260px;
  margin: auto;
  padding: 18px 24px 0;
}
.brandbar {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-bottom: 16px;
}
.brand-name {
  font-size: 15px;
  font-weight: 750;
}
.brand-sub {
  color: #9fb3ca;
  font-size: 9px;
  letter-spacing: 1.7px;
}
.model-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  color: #dbe7f3;
  font-size: 11px;
}
.model-chip i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8fa2b7;
}
.model-chip i.ok {
  background: #43d39b;
}
.model-chip i.loading {
  background: #f0af4d;
  animation: pulse 1.1s infinite;
}
.model-chip i.bad {
  background: #ff7771;
}
@keyframes pulse {
  50% {
    opacity: 0.25;
    transform: scale(0.75);
  }
}
.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 7px;
  color: #fff;
  font-size: 12px;
}
.user-chip b {
  padding: 2px 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
  color: #c5d5e6;
  font-size: 9px;
}
.user-chip button {
  height: 30px;
  padding: 0 10px;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  font-size: 11px;
}
.main-nav {
  display: flex;
  gap: 4px;
  overflow: auto;
}
.main-nav button {
  position: relative;
  height: 45px;
  padding: 0 15px;
  border: 0;
  border-radius: 8px 8px 0 0;
  background: transparent;
  color: #b9c9db;
  font-size: 12px;
  white-space: nowrap;
}
.main-nav button:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: none;
}
.main-nav button.active {
  background: var(--canvas);
  color: var(--navy-900);
}
.main-nav em {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  margin-left: 4px;
  place-items: center;
  border-radius: 99px;
  background: #e95048;
  color: #fff;
  font-size: 9px;
  font-style: normal;
}
main {
  max-width: 1260px;
  min-height: calc(100vh - 190px);
  margin: 0 auto;
  padding: 31px 24px 65px;
}
.page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 22px;
}
.page-title h1 {
  margin: 5px 0 4px;
  color: #132941;
  font-size: 28px;
  line-height: 1.25;
}
.page-title p {
  margin: 0;
  color: var(--muted);
}
.page-identity {
  min-width: 180px;
  padding: 12px 16px;
  border-radius: 11px;
  background: var(--navy-900);
  color: #afc0d2;
  font-size: 11px;
  text-align: right;
}
.page-identity b {
  display: block;
  color: #fff;
  font-size: 19px;
}
.card {
  margin-bottom: 18px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.card > h2 {
  margin: 0 0 18px;
  font-size: 17px;
}
.page-title-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: 36px;
  align-items: center;
  margin-bottom: 18px;
  padding: 30px 34px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 85% 15%, rgba(67, 153, 225, 0.24), transparent 36%),
    linear-gradient(130deg, var(--navy-950), #143e67);
  color: #fff;
  box-shadow: 0 20px 45px rgba(6, 28, 52, 0.18);
}
.guide-eyebrow {
  color: #76d8b3;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 2px;
}
.guide-hero h2 {
  margin: 7px 0 8px;
  font-size: 25px;
}
.guide-hero p {
  max-width: 690px;
  margin: 0;
  color: #c8d7e7;
}
.guide-role-chips {
  display: grid;
  gap: 9px;
}
.guide-role-chips span {
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.07);
  color: #d7e3ef;
  font-size: 11px;
}
.guide-role-chips b {
  display: inline-block;
  min-width: 36px;
  color: #fff;
}
.guide-flow {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 18px;
}
.guide-flow article {
  position: relative;
  min-height: 136px;
  padding: 17px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 9px 25px rgba(8, 31, 61, 0.06);
}
.guide-flow article:not(:last-child)::after {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: -13px;
  width: 22px;
  height: 22px;
  border: 1px solid #d8e2ed;
  border-radius: 50%;
  background: #f6f8fb;
  color: #4a6580;
  content: "›";
  font-size: 18px;
  font-style: normal;
  line-height: 19px;
  text-align: center;
}
.guide-flow i {
  display: block;
  margin-bottom: 16px;
  color: #8aa0b8;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
  letter-spacing: 1px;
}
.guide-flow b,
.guide-flow span {
  display: block;
}
.guide-flow b {
  margin-bottom: 5px;
  color: #18334f;
  font-size: 14px;
}
.guide-flow span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.guide-panel {
  padding: 26px 28px;
}
.guide-panel-head {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-bottom: 19px;
  border-bottom: 1px solid #e5ebf2;
}
.guide-panel-head > div > span,
.guide-section-title > span {
  color: #65809b;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 1.5px;
}
.guide-panel-head h2,
.guide-section-title h2 {
  margin: 3px 0 0;
  font-size: 18px;
}
.guide-icon {
  display: grid;
  flex: 0 0 43px;
  height: 43px;
  place-items: center;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 850;
}
.guide-icon.employee {
  background: #e7f0fb;
  color: #215f99;
}
.guide-icon.finance {
  background: #e7f7ef;
  color: #137354;
}
.guide-list {
  margin: 21px 0 0;
  padding: 0;
  counter-reset: guide-item;
  list-style: none;
}
.guide-list li {
  position: relative;
  min-height: 51px;
  padding: 0 0 17px 40px;
  counter-increment: guide-item;
}
.guide-list li::before {
  position: absolute;
  top: 1px;
  left: 0;
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  background: #eef3f8;
  color: #365a7d;
  content: counter(guide-item);
  font-size: 10px;
  font-weight: 850;
}
.guide-list li:not(:last-child)::after {
  position: absolute;
  top: 30px;
  bottom: 3px;
  left: 13px;
  width: 1px;
  background: #dce5ee;
  content: "";
}
.guide-list b,
.guide-list span {
  display: block;
}
.guide-list b {
  margin-bottom: 2px;
  color: #223c55;
  font-size: 12px;
}
.guide-list span {
  color: var(--muted);
  font-size: 10px;
}
.guide-materials {
  padding: 27px 28px;
}
.guide-section-title p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 11px;
}
.guide-material-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 21px;
}
.guide-material-grid article {
  min-height: 130px;
  padding: 17px;
  border: 1px solid #dfe7f0;
  border-radius: 11px;
  background: #f8fafc;
}
.guide-material-grid i {
  display: grid;
  width: 30px;
  height: 30px;
  margin-bottom: 13px;
  place-items: center;
  border-radius: 8px;
  background: var(--navy-900);
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}
.guide-material-grid b,
.guide-material-grid span {
  display: block;
}
.guide-material-grid b {
  margin-bottom: 4px;
  font-size: 12px;
}
.guide-material-grid span {
  color: var(--muted);
  font-size: 10px;
}
.guide-note {
  margin-top: 15px;
  padding: 11px 14px;
  border-left: 3px solid #c99845;
  border-radius: 4px 8px 8px 4px;
  background: #fff8e9;
  color: #735b2d;
  font-size: 11px;
}
.guide-help-grid .card {
  margin-bottom: 18px;
}
.guide-panel.compact {
  min-height: 330px;
}
.guide-checks {
  display: grid;
  gap: 11px;
  margin: 19px 0 0;
  padding: 0;
  list-style: none;
}
.guide-checks li {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 9px;
  background: #f5f8fb;
}
.guide-checks b {
  color: #244c72;
}
.guide-checks span {
  color: var(--muted);
  font-size: 10px;
}
.status-guide {
  display: grid;
  gap: 10px;
  margin-top: 19px;
}
.status-guide p {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  align-items: center;
  margin: 0;
  padding: 9px 11px;
  border: 1px solid #e2e8ef;
  border-radius: 9px;
}
.status-guide em {
  color: #225984;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
}
.status-guide span {
  color: var(--muted);
  font-size: 10px;
}
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}
.faq-grid details {
  overflow: hidden;
  border: 1px solid #dfe6ee;
  border-radius: 10px;
  background: #fafbfd;
}
.faq-grid summary {
  position: relative;
  padding: 14px 38px 14px 15px;
  color: #263e56;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}
.faq-grid summary::-webkit-details-marker {
  display: none;
}
.faq-grid summary::after {
  position: absolute;
  top: 11px;
  right: 14px;
  color: #71869c;
  content: "+";
  font-size: 18px;
  font-weight: 400;
}
.faq-grid details[open] summary::after {
  content: "−";
}
.faq-grid details p {
  margin: 0;
  padding: 0 15px 15px;
  color: var(--muted);
  font-size: 10px;
}
.guide-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  border: 1px solid #cad8e7;
  border-radius: 14px;
  background: #eaf1f8;
}
.guide-cta b,
.guide-cta span {
  display: block;
}
.guide-cta b {
  color: #173958;
  font-size: 15px;
}
.guide-cta span {
  margin-top: 2px;
  color: #667b91;
  font-size: 10px;
}
.section-head {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  margin-bottom: 19px;
}
.section-head .step {
  display: grid;
  flex: 0 0 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  background: var(--navy-900);
  color: #fff;
  font-size: 11px;
  font-weight: 850;
}
.section-head h2 {
  margin: 0;
  color: #182b42;
  font-size: 18px;
  line-height: 1.35;
}
.section-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.total-box {
  min-width: 185px;
  padding: 11px 15px;
  border-radius: 11px;
  background: var(--navy-900);
  color: #afc0d2;
  text-align: right;
  font-size: 10px;
  letter-spacing: 0.6px;
}
.total-box b {
  display: block;
  color: #fff;
  font-size: 23px;
  letter-spacing: 0;
}
.drop {
  display: grid;
  min-height: 175px;
  place-items: center;
  border: 1.5px dashed #9db3ce;
  border-radius: 13px;
  background: linear-gradient(180deg, #fbfdff, #f6f9fd);
  text-align: center;
  cursor: pointer;
  transition: 0.18s;
}
.drop:hover,
.drop.drag {
  border-color: #3975c4;
  background: #f1f6fd;
}
.drop input {
  display: none;
}
.upload-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin: 0 auto 10px;
  place-items: center;
  border-radius: 13px;
  background: var(--navy-900);
  color: #fff;
  font-size: 22px;
}
.drop strong {
  display: block;
  margin-bottom: 4px;
  color: #182b42;
  font-size: 15px;
}
.drop span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.format-tags {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 11px;
}
.format-tags b {
  padding: 2px 7px;
  border-radius: 4px;
  background: #e8eef5;
  color: #52657c;
  font-size: 9px;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 15px;
}
.ocr-mode-indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 9px;
  border: 1px solid #d2dce8;
  border-radius: 7px;
  background: #fff;
  color: #53667b;
  font-size: 10px;
  font-weight: 700;
}
.ocr-mode-indicator b {
  color: #243c56;
  font-weight: 800;
}
.file-action {
  display: inline-flex;
  height: 40px;
  align-items: center;
  padding: 0 16px;
  border: 1px solid #d2dce8;
  border-radius: 8px;
  background: #fff;
  color: #34485f;
  cursor: pointer;
}
.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.work-status {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
}
.progress {
  display: none;
  height: 5px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 8px;
  background: #e8edf4;
}
.progress i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--navy-700), #3d8bd1);
  transition: width 0.2s;
}
.source-list {
  display: grid;
  gap: 8px;
  margin-top: 13px;
}
.source {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  height: auto;
  padding: 10px 11px;
  border: 1px solid var(--line);
  background: #fcfdff;
  color: var(--ink);
  font-weight: 500;
  text-align: left;
  cursor: zoom-in;
}
.source:hover {
  transform: none;
  background: #f6f9fd;
  box-shadow: none;
}
.source-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.source-status {
  margin-left: auto;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}
.source-status.done {
  color: var(--ok);
}
.badge {
  padding: 2px 7px;
  border-radius: 4px;
  background: #edf4ff;
  color: #245b9b;
  font-size: 9px;
  font-weight: 850;
}
.privacy {
  display: flex;
  gap: 6px;
  margin: 12px 0 0;
  color: var(--ok);
  font-size: 10px;
}
.privacy:before {
  content: "✓";
  font-weight: 900;
}
.notice {
  padding: 10px 12px;
  border: 1px solid #ebdfc8;
  border-radius: 8px;
  background: #fffbf3;
  color: #795c2b;
  font-size: 11px;
}
.table-wrap {
  overflow: auto;
  margin: 13px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.table-wrap table {
  width: 100%;
  min-width: 960px;
  border-collapse: collapse;
}
.table-wrap th {
  padding: 10px;
  background: #edf2f7;
  color: #40536a;
  font-size: 11px;
  text-align: left;
}
.table-wrap td {
  padding: 6px 7px;
  border-top: 1px solid #e5eaf0;
  background: #fff;
}
.table-wrap tbody tr:nth-child(even) td {
  background: #fbfcfe;
}
.table-wrap td input,
.table-wrap td select {
  width: 100%;
  height: 35px;
  padding: 0 7px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: inherit;
}
.table-wrap td input:focus,
.table-wrap td select:focus {
  border-color: #90add0;
  background: #fff;
  outline: 0;
}
.table-wrap td.amount input {
  text-align: right;
}
.table-wrap .delete-row {
  width: 33px;
  height: 29px;
  padding: 0;
  border-color: #f2d4d1;
  background: #fff7f6;
  color: var(--bad);
  font-size: 11px;
}
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.layout-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}
.layout-cards label {
  cursor: pointer;
}
.layout-cards input {
  position: absolute;
  opacity: 0;
}
.layout-cards span {
  display: block;
  height: 100%;
  padding: 13px 12px;
  border: 1px solid #d8e1eb;
  border-radius: 10px;
  background: #f9fbfd;
}
.layout-cards b,
.layout-cards small {
  display: block;
}
.layout-cards b {
  color: #31465e;
}
.layout-cards small {
  margin-top: 3px;
  color: #78879a;
  font-weight: 400;
}
.layout-cards input:checked + span {
  border-color: #315f94;
  background: #edf4fc;
  box-shadow: inset 0 0 0 1px #315f94;
}
.signature-mode {
  display: flex;
  gap: 18px;
}
.signature-mode label {
  white-space: nowrap;
}
.signature-mode input {
  accent-color: var(--navy-800);
}
.signature-saved-preview {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  margin-top: 10px;
  padding: 6px 9px;
  border: 1px solid #d8e3ef;
  border-radius: 7px;
  background: #f7fafc;
  color: #60758b;
  font-size: 11px;
}
.signature-saved-preview img {
  width: 92px;
  height: 30px;
  object-fit: contain;
  background: #fff;
}
.signature-pad {
  margin-top: 10px;
}
.signature-pad canvas {
  display: block;
  width: 100%;
  height: 125px;
  border: 1px dashed #9fb1c5;
  border-radius: 9px;
  background: #fff;
  touch-action: none;
}
.signature-pad-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}
.signature-pad-actions .link-button,
.signature-pad-actions .signature-save-button {
  height: 27px;
  padding: 0 8px;
  border-radius: 5px;
}
.signature-pad-actions .link-button {
  background: rgba(255, 255, 255, 0.9);
  color: #58708a;
  font-size: 10px;
}
.signature-pad-actions .signature-save-button {
  font-size: 11px;
}
.submit-bar {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 17px 20px;
  border: 1px solid #ced9e6;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}
.submit-bar > div {
  margin-right: auto;
}
.submit-bar b,
.submit-bar span {
  display: block;
}
.submit-bar b {
  color: #213851;
}
.submit-bar span {
  color: var(--muted);
  font-size: 11px;
}
.record-grid {
  display: grid;
  gap: 12px;
}
.record-filter {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 190px auto auto;
  align-items: end;
  gap: 10px;
  margin-bottom: 9px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 25px rgba(8, 31, 61, 0.04);
}
.record-filter label span {
  display: block;
  margin-bottom: 5px;
  color: #66788c;
  font-size: 10px;
  font-weight: 750;
}
.record-filter input,
.record-filter select {
  width: 100%;
  height: 38px;
  padding: 0 11px;
  border: 1px solid #cbd7e3;
  border-radius: 7px;
  background: #fff;
  color: #213851;
}
.record-filter button {
  height: 38px;
}
.record-result-summary {
  margin: 0 2px 10px;
  color: #708094;
  font-size: 10px;
}
.record-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 15px;
}
.record-pagination span {
  min-width: 155px;
  text-align: center;
  color: #53667b;
  font-size: 11px;
  font-weight: 700;
}
.record-card {
  display: grid;
  grid-template-columns: minmax(250px, 1.4fr) repeat(3, minmax(100px, 0.55fr)) auto;
  align-items: center;
  gap: 16px;
  padding: 17px 19px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 8px 25px rgba(8, 31, 61, 0.05);
}
.record-card h3 {
  margin: 0;
  color: #18314c;
  font-size: 15px;
}
.record-card p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 10px;
}
.record-card dl {
  margin: 0;
}
.record-card dt {
  color: #8793a2;
  font-size: 9px;
}
.record-card dd {
  margin: 1px 0 0;
  color: #273b52;
  font-size: 13px;
  font-weight: 750;
}
.record-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}
.record-actions button,
.record-actions a,
.download-row a,
.download-row button {
  display: inline-flex;
  height: 33px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #d3dde9;
  border-radius: 7px;
  background: #fff;
  color: #37506a;
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
}
.record-actions a:hover,
.download-row a:hover,
.download-row button:hover {
  background: #f3f6fa;
}
.record-actions .delete-record-button,
.download-row .delete-record-button {
  border-color: #e4bbb8;
  background: #fff6f5;
  color: #a33a35;
}
.record-actions .delete-record-button:hover,
.download-row .delete-record-button:hover {
  border-color: #c96560;
  background: #fff0ef;
}
.status {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 99px;
  background: #eef2f7;
  color: #586b80;
  font-size: 9px;
  font-weight: 800;
}
.status.approved {
  background: #e7f7f0;
  color: var(--ok);
}
.status.rejected {
  background: #fff0ef;
  color: var(--bad);
}
.status.submitted,
.status.reviewing {
  background: #fff6e5;
  color: #a2630e;
}
.empty {
  display: grid;
  min-height: 180px;
  place-items: center;
  padding: 25px;
  border: 1px dashed #c7d2df;
  border-radius: 12px;
  background: #fafcfe;
  color: #7a899a;
}
.review-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 16px;
}
.queue {
  display: grid;
  align-content: start;
  gap: 8px;
}
.queue-item {
  width: 100%;
  height: auto;
  padding: 13px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-align: left;
}
.queue-item:hover,
.queue-item.active {
  transform: none;
  border-color: #7595ba;
  background: #f1f6fc;
  box-shadow: none;
}
.queue-item b,
.queue-item span {
  display: block;
}
.queue-item b {
  font-size: 12px;
}
.queue-item span {
  color: var(--muted);
  font-size: 10px;
}
.review-detail {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--shadow);
}
.review-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}
.review-head h2 {
  margin: 0;
  font-size: 20px;
}
.review-head p {
  margin: 4px 0 0;
  color: var(--muted);
}
.review-amount {
  text-align: right;
}
.review-amount b {
  display: block;
  color: var(--navy-800);
  font-size: 24px;
}
.mini-table {
  width: 100%;
  margin: 15px 0;
  border-collapse: collapse;
}
.mini-table th,
.mini-table td {
  padding: 8px;
  border-bottom: 1px solid #e6ebf1;
  text-align: left;
  font-size: 11px;
}
.mini-table th {
  color: #65758a;
}
.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.proof-card {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f9fbfd;
}
.proof-card h4 {
  margin: 0 0 7px;
  overflow: hidden;
  color: #30465e;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.proof-preview {
  display: grid;
  height: 300px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #e0e6ed;
  border-radius: 7px;
  background: #fff;
}
.proof-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.proof-preview iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.proof-controls {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 7px;
  margin-top: 8px;
}
.proof-controls select,
.proof-controls input,
.review-form textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccd7e4;
  border-radius: 7px;
  background: #fff;
}
.review-form {
  margin-top: 18px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}
.review-form textarea {
  min-height: 80px;
  resize: vertical;
}
.review-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 13px;
}
.download-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 11px;
  margin-bottom: 17px;
}
.metric {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(8, 31, 61, 0.05);
}
.metric span {
  display: block;
  color: #78879a;
  font-size: 10px;
}
.metric b {
  display: block;
  margin-top: 3px;
  color: #18324e;
  font-size: 21px;
}
.metric.pending b {
  color: var(--warn);
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.bar-chart {
  display: grid;
  gap: 10px;
}
.bar-row {
  display: grid;
  grid-template-columns: 105px minmax(80px, 1fr) 80px;
  align-items: center;
  gap: 8px;
}
.bar-label {
  overflow: hidden;
  color: #465a72;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bar-track {
  height: 9px;
  overflow: hidden;
  border-radius: 99px;
  background: #e9eef4;
}
.bar-track i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #1d4776, #3b82c4);
}
.bar-value {
  text-align: right;
  color: #263c55;
  font-size: 10px;
  font-weight: 750;
}
.modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(4, 15, 29, 0.78);
  backdrop-filter: blur(6px);
}
.modal-shell {
  display: flex;
  flex-direction: column;
  width: min(1180px, 96vw);
  max-height: 93vh;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  background: #eef2f6;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.36);
}
.modal-shell.small {
  width: min(460px, 94vw);
}
.modal-shell.record-detail-wide {
  width: min(1500px, 97vw);
  max-height: 95vh;
}
.modal-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  background: var(--navy-950);
  color: #fff;
}
.modal-head h2 {
  margin: 0;
  font-size: 15px;
}
.modal-head p {
  margin: 2px 0 0;
  color: #aebfd4;
  font-size: 10px;
}
.modal-head button {
  margin-left: auto;
  width: 36px;
  height: 35px;
  padding: 0;
  border-color: rgba(255, 255, 255, 0.17);
  background: rgba(255, 255, 255, 0.08);
  font-size: 20px;
}
.modal-body {
  min-height: 240px;
  overflow: auto;
  padding: 20px;
}
.modal-form {
  padding: 22px;
  background: #fff;
}
.file-preview {
  display: grid;
  min-height: 65vh;
  place-items: center;
}
.file-preview img {
  max-width: 100%;
  max-height: 75vh;
  cursor: zoom-in;
}
.file-preview img.zoomed {
  max-width: none;
  max-height: none;
  cursor: zoom-out;
}
.file-preview iframe {
  width: 100%;
  height: 75vh;
  border: 0;
  background: #fff;
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.65fr);
  gap: 16px;
}
.detail-panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.detail-panel h3 {
  margin: 0 0 12px;
  font-size: 14px;
}
.detail-table-wrap {
  margin-bottom: 20px;
  overflow-x: auto;
}
.detail-table-wrap .mini-table {
  min-width: 700px;
}
.proof-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.proof-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #304860;
  text-decoration: none;
}
.event-list {
  display: grid;
  gap: 8px;
}
.event {
  padding-left: 12px;
  border-left: 2px solid #b8c8d9;
}
.event b,
.event span {
  display: block;
}
.event b {
  font-size: 11px;
}
.event span {
  color: var(--muted);
  font-size: 9px;
}
.settings-current {
  min-width: 190px;
  padding: 10px 14px;
  border: 1px solid #cfdae7;
  border-radius: 7px;
  background: #fff;
  color: #6c7d90;
  font-size: 10px;
  text-align: right;
}
.settings-current b {
  display: block;
  margin-top: 2px;
  color: #19334f;
  font-size: 15px;
}
.settings-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.settings-heading,
.settings-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.settings-heading h2 {
  margin: 0;
  color: #182b42;
  font-size: 18px;
}
.settings-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.settings-heading > span {
  color: #7b8999;
  font-size: 10px;
  white-space: nowrap;
}
.ocr-setting-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.ocr-setting-options label {
  position: relative;
  cursor: pointer;
}
.ocr-setting-options input {
  position: absolute;
  opacity: 0;
}
.ocr-setting-options label > span {
  display: block;
  min-height: 130px;
  padding: 18px;
  border: 1px solid #ced9e5;
  border-radius: 7px;
  background: #fbfcfe;
}
.ocr-setting-options b,
.ocr-setting-options small,
.ocr-setting-options em {
  display: block;
}
.ocr-setting-options b {
  color: #1d354e;
  font-size: 15px;
}
.ocr-setting-options small {
  min-height: 38px;
  margin-top: 6px;
  color: #66788b;
  font-size: 11px;
  line-height: 1.7;
}
.ocr-setting-options em {
  margin-top: 10px;
  color: #718197;
  font-size: 10px;
  font-style: normal;
  font-weight: 750;
}
.ocr-setting-options em.ready {
  color: #287151;
}
.ocr-setting-options em.unavailable {
  color: #a33d36;
}
.ocr-setting-options input:checked + span {
  border-color: #275f99;
  background: #edf4fb;
  box-shadow: inset 0 0 0 1px #275f99;
}
.ocr-setting-options input:disabled + span {
  cursor: not-allowed;
  opacity: 0.55;
}
.settings-warning {
  margin-top: 14px;
  padding: 11px 13px;
  border-left: 3px solid #d6a029;
  background: #fff9e9;
  color: #765d24;
  font-size: 11px;
}
.settings-warning.active {
  border-left-color: #b54138;
  background: #fff2f0;
  color: #843b35;
}
.settings-actions {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.settings-actions > span {
  color: #66788b;
  font-size: 11px;
}
.toast {
  position: fixed;
  z-index: 200;
  right: 22px;
  bottom: 22px;
  max-width: 380px;
  padding: 12px 15px;
  border-radius: 10px;
  background: #0d2340;
  color: #fff;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
  font-size: 12px;
  opacity: 0;
  transform: translateY(15px);
  pointer-events: none;
  transition: 0.2s;
}
.toast.show {
  opacity: 1;
  transform: none;
}
.toast.bad {
  background: #9f2f2a;
}
footer {
  display: flex;
  justify-content: space-between;
  max-width: 1260px;
  margin: auto;
  padding: 0 24px 28px;
  color: #8290a1;
  font-size: 10px;
}
@media (max-width: 1050px) {
  .metric-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .record-card {
    grid-template-columns: 1.3fr repeat(2, 0.6fr);
  }
  .record-card dl:nth-of-type(3) {
    display: none;
  }
  .record-actions {
    grid-column: 1/-1;
    justify-content: flex-start;
  }
  .review-layout {
    grid-template-columns: 260px 1fr;
  }
  .proof-grid {
    grid-template-columns: 1fr;
  }
  .layout-cards {
    grid-template-columns: 1fr;
  }
  .ocr-setting-options {
    grid-template-columns: 1fr;
  }
  .settings-heading,
  .settings-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .settings-heading > span {
    white-space: normal;
  }
}
@media (max-width: 760px) {
  .auth-screen {
    display: block;
    padding: 7vh 16px;
  }
  .auth-brand {
    margin: 0 auto 34px;
    text-align: center;
  }
  .auth-brand h1 {
    font-size: 30px;
  }
  .auth-brand > p {
    font-size: 14px;
  }
  .auth-points {
    justify-content: center;
  }
  .auth-card {
    margin: auto;
    padding: 23px;
  }
  .header-inner {
    padding: 14px 12px 0;
  }
  .brand-sub,
  .model-chip {
    display: none;
  }
  .brand-name {
    max-width: 170px;
    font-size: 12px;
  }
  .user-chip {
    margin-left: auto;
  }
  .user-chip span {
    display: none;
  }
  .main-nav button {
    padding: 0 11px;
  }
  .page-title {
    align-items: flex-start;
    flex-direction: column;
  }
  .page-title h1 {
    font-size: 24px;
  }
  .page-identity {
    width: 100%;
    text-align: left;
  }
  .page-identity b {
    display: inline;
    margin-left: 8px;
  }
  .card {
    padding: 19px 15px;
  }
  .two-column,
  .dashboard-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .layout-cards {
    grid-template-columns: 1fr;
  }
  .submit-bar {
    align-items: stretch;
    flex-direction: column;
  }
  .submit-bar > div {
    margin: 0;
  }
  .submit-bar button {
    width: 100%;
  }
  .work-status {
    width: 100%;
    margin: 0;
  }
  .record-card {
    grid-template-columns: 1fr 1fr;
    gap: 11px;
  }
  .record-card > div:first-child {
    grid-column: 1/-1;
  }
  .record-actions {
    grid-column: 1/-1;
  }
  .review-layout {
    grid-template-columns: 1fr;
  }
  .queue {
    max-height: 300px;
    overflow: auto;
  }
  .review-detail {
    padding: 14px;
  }
  .proof-grid {
    grid-template-columns: 1fr;
  }
  .metric-grid {
    grid-template-columns: 1fr 1fr;
  }
  .bar-row {
    grid-template-columns: 75px 1fr 65px;
  }
  .proof-controls {
    grid-template-columns: 1fr;
  }
  .modal {
    padding: 0;
  }
  .modal-shell {
    width: 100vw;
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
  }
  .modal-body {
    padding: 12px;
  }
  footer {
    display: block;
    padding: 0 15px 24px;
  }
footer span {
  display: block;
}
  .source .source-status {
    display: none;
  }
}

.expense-empty {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 84px;
  margin: 14px 0;
  padding: 16px 18px;
  border: 1px solid #dbe4ee;
  border-radius: 8px;
  background: #f8fafc;
  color: #53667b;
}
.expense-empty > span {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 50%;
  background: #e8eef5;
  color: #284d77;
  font-size: 12px;
  font-weight: 800;
}
.expense-empty b,
.expense-empty small {
  display: block;
}
.expense-empty b {
  color: #263d56;
  font-size: 13px;
}
.expense-empty small {
  margin-top: 3px;
  color: #7b8998;
  line-height: 1.55;
}
.preview-button {
  width: 100%;
  margin-top: 12px;
  border-color: #bfcddd;
  background: #fff;
  color: #274d78;
}
.document-preview-frame {
  width: 100%;
  height: 76vh;
  border: 0;
  border-radius: 8px;
  background: #fff;
}
.record-owner {
  display: inline-flex;
  margin-bottom: 4px;
  padding: 2px 7px;
  border-radius: 4px;
  background: #edf3f9;
  color: #315a86;
  font-size: 10px;
  font-weight: 800;
}
.proof-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.proof-tile {
  overflow: hidden;
  border: 1px solid #d8e1eb;
  border-radius: 8px;
  background: #f7f9fc;
}
.proof-tile-preview {
  display: grid;
  height: 220px;
  place-items: center;
  overflow: hidden;
  background: #fff;
  cursor: zoom-in;
}
.proof-tile-preview img,
.proof-tile-preview iframe {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
}
.proof-tile-preview iframe {
  pointer-events: none;
}
.proof-tile-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 9px;
  color: #53667b;
  font-size: 9px;
}
.proof-tile-meta b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.inline-proof-button {
  min-height: 26px;
  padding: 3px 7px;
  border: 1px solid #b9cce0;
  border-radius: 5px;
  background: #f4f8fc;
  color: #285983;
  font-size: 10px;
  white-space: nowrap;
}
.inline-proof-button:hover {
  border-color: #356d9e;
  background: #eaf2fa;
}
.proof-modal {
  z-index: 130;
  padding: 14px;
  background: rgba(3, 12, 24, 0.86);
}
.proof-modal-shell {
  width: min(1600px, 98vw);
  height: 96vh;
  max-height: 96vh;
}
.proof-modal-body {
  padding: 12px;
  background: #dfe6ed;
}
.proof-document-gallery {
  display: grid;
  gap: 14px;
}
.proof-document-card {
  overflow: hidden;
  border: 1px solid #cbd6e1;
  border-radius: 10px;
  background: #fff;
}
.proof-document-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-bottom: 1px solid #dde5ed;
  background: #f7f9fb;
}
.proof-document-meta b,
.proof-document-meta span {
  display: block;
}
.proof-document-meta b {
  max-width: min(900px, 72vw);
  overflow: hidden;
  color: #233b54;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.proof-document-meta span {
  margin-top: 2px;
  color: #7c8997;
  font-size: 9px;
}
.proof-review-state {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 99px;
  background: #eef2f6;
  color: #637385;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}
.proof-review-state.checked {
  background: #e5f6ed;
  color: #19714d;
}
.proof-review-state.problem {
  background: #fff0ef;
  color: #a33a35;
}
.proof-document-viewer {
  display: grid;
  width: 100%;
  min-height: 420px;
  height: 76vh;
  place-items: center;
  overflow: auto;
  background: #f1f3f6;
}
.proof-document-viewer iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}
.proof-document-viewer img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 76vh;
  object-fit: contain;
  cursor: zoom-in;
}
.proof-document-viewer.zoomed {
  display: block;
  padding: 12px;
  text-align: left;
}
.proof-document-viewer.zoomed img {
  max-width: none;
  max-height: none;
  cursor: zoom-out;
}
.review-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 18px 0 10px;
}
.review-tools h3 {
  margin: 0;
}
.account-status {
  min-width: 92px;
}
.line-chart {
  min-height: 220px;
  padding: 12px 4px 0;
}
.line-chart svg {
  width: 100%;
  height: 185px;
  overflow: visible;
}
.line-chart .grid-line {
  stroke: #e2e8f0;
  stroke-width: 1;
}
.line-chart .trend-line {
  fill: none;
  stroke: #1e5d93;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.line-chart .trend-area {
  fill: rgba(43, 111, 164, 0.1);
}
.line-chart circle {
  fill: #fff;
  stroke: #1e5d93;
  stroke-width: 2.5;
}
.line-chart text {
  fill: #718096;
  font-size: 10px;
}
.metric-icon {
  display: grid;
  width: 30px;
  height: 30px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 7px;
  background: #e8eef5;
  color: #244f7c;
  font-size: 13px;
  font-weight: 800;
}
@media (max-width: 760px) {
  .page-title-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column-reverse;
  }
  .page-title-actions .page-identity {
    width: 100%;
  }
  .guide-hero {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 24px 20px;
  }
  .guide-hero h2 {
    font-size: 21px;
  }
  .guide-flow {
    grid-template-columns: 1fr;
  }
  .guide-flow article {
    min-height: 0;
    padding: 15px 16px 15px 58px;
  }
  .guide-flow article:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: -14px;
    left: 21px;
    transform: rotate(90deg);
  }
  .guide-flow i {
    position: absolute;
    top: 17px;
    left: 16px;
    margin: 0;
  }
  .guide-grid,
  .guide-material-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .guide-panel,
  .guide-materials {
    padding: 21px 18px;
  }
  .guide-panel.compact {
    min-height: auto;
  }
  .guide-material-grid article {
    min-height: 0;
  }
  .guide-cta {
    align-items: stretch;
    flex-direction: column;
  }
  .guide-cta button {
    width: 100%;
  }
  .signature-mode {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
  }
  .proof-gallery {
    grid-template-columns: 1fr;
  }
  .proof-tile-preview {
    height: 280px;
  }
  .record-filter {
    grid-template-columns: 1fr 1fr;
  }
  .record-filter label:first-child {
    grid-column: 1 / -1;
  }
  .proof-modal {
    padding: 0;
  }
  .proof-modal-shell {
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }
  .proof-modal-body {
    padding: 7px;
  }
  .proof-document-viewer {
    min-height: 300px;
    height: 78vh;
  }
  .proof-document-viewer img {
    max-height: 78vh;
  }
}

@media (min-width: 761px) and (max-width: 1060px) {
  .guide-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .guide-flow article:nth-child(3)::after {
    display: none;
  }
  .guide-material-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
