:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: #1c302f;
  background: #f4f6f2;
  font-synthesis: none;
  --muted: #64726b;
  --line: #e0e6df;
  --green: #205846;
  --deep: #183b34;
  --white: #fff;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 300px; }
button, a, input, select { font: inherit; }
button, select { cursor: pointer; }
button:disabled, select:disabled { cursor: default; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, .file-button:focus-within {
  outline: 2px solid #468369;
  outline-offset: 3px;
}
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(28px, 4vw, 36px); letter-spacing: -.055em; line-height: 1.25; }
h2 { font-size: 16px; }
svg { flex: 0 0 auto; vertical-align: middle; }
[hidden] { display: none !important; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1;
  width: 216px;
  background: #fbfcf9;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 27px 17px 20px;
}
.brand { display: flex; align-items: center; gap: 12px; padding-inline: 9px; }
.brand-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: block;
  border-radius: 9px;
}
.brand strong { font-size: 18px; }
.brand small { display: block; font-size: 11px; margin-top: 4px; color: var(--muted); letter-spacing: .08em; }
.sidebar nav { margin-top: 42px; }
.nav-current {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border-radius: 9px;
  color: var(--green);
  background: #e7efe7;
  font-size: 14px;
  font-weight: 650;
}
.side-note { margin-top: auto; display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 12px; padding: 14px 9px 0; border-top: 1px solid var(--line); }
.workspace { min-width: 0; margin-left: 216px; }
.topbar {
  min-height: 69px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px max(27px, calc((100% - 1120px) / 2));
  border-bottom: 1px solid var(--line);
  background: #fbfcf9;
}
.crumb, .account { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.crumb { color: var(--muted); }
.crumb strong { color: #21352f; }
.avatar { display: grid; place-items: center; border-radius: 50%; width: 34px; height: 34px; background: #e0ebe0; color: #275743; font-weight: 700; }
.account-name { font-weight: 600; }
.account-details { position: relative; z-index: 4; }
.account-details summary { display: flex; align-items: center; gap: 9px; cursor: pointer; list-style: none; }
.account-details summary::-webkit-details-marker { display: none; }
.account-details summary:focus-visible { outline: 2px solid #468369; outline-offset: 3px; border-radius: 6px; }
.account-card { position: absolute; top: calc(100% + 10px); right: 0; width: min(250px, calc(100vw - 30px)); padding: 13px; box-shadow: 0 6px 18px #193b3420; }
.account-card label { display: grid; gap: 6px; margin-top: 9px; color: var(--muted); }
.account-card input { width: 100%; padding: 6px; color: #21352f; background: #f7f9f5; border: 1px solid var(--line); border-radius: 5px; }
.demo { display: flex; align-items: center; gap: 8px; margin-right: 12px; }
.demo > span { color: var(--muted); font-size: 12px; }
.demo select, .batch-controls select, .batch-controls input {
  border: 1px solid #d7e1d7;
  padding: 7px 9px;
  border-radius: 7px;
  color: #254033;
  background: #fff;
}
#content { width: min(100%, 1174px); margin: 0 auto; padding: 37px 27px 48px; }
.heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 26px; }
.heading p { color: var(--muted); font-size: 14px; margin-top: 9px; }
.view-switch { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 15px; }
.access-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.access-panel { display: grid; gap: 13px; padding: 17px; min-width: 0; }
.access-panel > .button { justify-self: start; }
.access-panel label { display: grid; gap: 6px; min-width: 0; color: var(--muted); font-size: 13px; }
.access-panel input, .access-panel select { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #21352f; padding: 8px 10px; min-height: 39px; }
.access-lookup { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; }
.access-help { color: var(--muted); font-size: 12px; line-height: 1.5; }
.access-selection { list-style: none; margin: 0; padding: 0; }
.access-selection li { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding: 8px 0; font-size: 13px; overflow-wrap: anywhere; }
.access-selection small { display: block; color: var(--muted); margin-top: 3px; }
.publish-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.publish-controls label { display: flex; align-items: center; gap: 5px; font-size: 13px; }
.publish-controls input { accent-color: var(--green); }
.notification-panel { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between; margin-top: 16px; padding: 17px; }
.notification-panel p { margin-top: 6px; color: var(--muted); font-size: 13px; }
.employee-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(228px, 30%); gap: 22px; align-items: start; }
.employee-other { min-width: 0; display: grid; gap: 18px; }
.hero { border-radius: 18px; overflow: hidden; isolation: isolate; position: relative; color: #f7fcf8; background: linear-gradient(116deg, #183c34, #265a49); }
.hero-inner { padding: 25px 28px 22px; position: relative; }
.hero-pattern { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-pattern i { position: absolute; right: -90px; top: -90px; width: 290px; aspect-ratio: 1; border: 1px solid rgba(196, 221, 197, .23); border-radius: 50%; }
.hero-pattern i:nth-child(2) { transform: translate(-12px, 14px); }
.hero-pattern i:nth-child(3) { transform: translate(-24px, 28px); }
.hero-pattern i:nth-child(4) { transform: translate(-36px, 42px); }
.hero-pattern i:nth-child(5) { transform: translate(-48px, 56px); }
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.hero-period { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #e0efe3; }
.hero-label { display: flex; align-items: center; gap: 8px; margin-top: 29px; color: #cee0d3; font-size: 14px; }
.icon-button { border: 0; padding: 3px; border-radius: 5px; background: transparent; color: inherit; }
.icon-button:hover { color: white; background: #ffffff19; }
.hero-amount { font-variant-numeric: tabular-nums; font-size: clamp(37px, 6vw, 61px); font-weight: 660; letter-spacing: -.05em; margin: 3px 0 22px; line-height: 1.08; overflow-wrap: anywhere; }
.hero-amount small { font-size: .63em; }
.hero-name { font-size: 28px; font-weight: 660; margin: 5px 0 22px; overflow-wrap: anywhere; }
.hero-footer { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-top: 15px; border-top: 1px solid #ffffff30; color: #c8dfcf; font-size: 12px; }
.hero-footer strong { font-weight: 500; color: #fff; margin-left: 5px; }
.privacy-stamp {
  margin-left: auto;
  align-self: center;
  padding: 4px 8px 4px 10px;
  border: 4px double currentColor;
  border-radius: 3px;
  color: #ff9b92;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .14em;
  white-space: nowrap;
  transform: rotate(-8deg);
}

.badge { display: inline-flex; width: fit-content; align-items: center; gap: 6px; border-radius: 20px; padding: 5px 9px; white-space: nowrap; font-size: 12px; font-weight: 650; }
.badge i { background: currentColor; width: 6px; height: 6px; border-radius: 50%; }
.badge.done { color: #24634a; background: #e9f3eb; }
.badge.waiting { color: #79501c; background: #f7eedc; }
.hero .badge.done { color: #e0f4e6; background: #466d5e; }
.hero .badge.waiting { color: #ffe7b9; background: #526148; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 26px 0 12px; }
.section-heading h2 { font-size: 19px; }
.section-heading > span { color: var(--muted); font-size: 12px; }
.details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 13px; }
.detail { min-width: 0; padding: 16px 16px 14px; display: flex; flex-direction: column; }
.detail h3, .panel-heading { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.detail-icon { width: 35px; height: 35px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; }
.detail-icon.green { background: #e8f2e9; color: #2c6a51; }
.detail-icon.amber { background: #f8efdf; color: #956126; }
.detail-icon.blue { background: #eaf0f2; color: #3b6770; }
.detail dl { margin: 11px 0 6px; }
.detail dl > div, .detail-total { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 9px; padding: 8px 0; font-size: 13px; }
.detail dt, .detail-total > span { color: var(--muted); }
.detail dd { margin: 0; font-variant-numeric: tabular-nums; }
.uploaded-fields { padding: 8px 16px; }
.uploaded-fields dl { margin: 0; }
.uploaded-fields dl > div { padding: 11px 0; border-bottom: 1px solid var(--line); }
.uploaded-fields dl > div:last-child { border-bottom: 0; }
.uploaded-fields dt, .uploaded-fields dd { min-width: 0; overflow-wrap: anywhere; }
.uploaded-fields dd { white-space: pre-wrap; }
.detail-total { margin-top: auto; border-top: 1px solid var(--line); padding-bottom: 0; }
.detail-total strong { font-variant-numeric: tabular-nums; }
.history, .acknowledgement { padding: 17px; }
.acknowledgement { display: grid; gap: 10px; margin-top: 15px; }
.acknowledgement p { color: var(--muted); font-size: 12px; }
.panel-heading p, .review-header p { color: var(--muted); font-size: 12px; margin-top: 5px; line-height: 1.55; }
.month-list { margin-top: 14px; display: grid; gap: 5px; max-height: 370px; overflow: auto; padding: 2px; }
.month-row { color: #263a33; background: transparent; border: 1px solid transparent; display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 10px; border-radius: 8px; text-align: left; }
.month-row:hover { background: #f5f8f4; }
.month-row.active { color: #245141; background: #eef4ee; border-color: #dce9de; }
.month-row strong { font-size: 13px; }
.month-row small { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); }

.button { display: inline-flex; gap: 8px; justify-content: center; align-items: center; min-height: 39px; text-decoration: none; border: 1px solid #d8e3d9; border-radius: 8px; padding: 7px 13px; color: #24483a; background: #fff; font-size: 13px; font-weight: 650; white-space: nowrap; }
.button:not(:disabled):hover { background: #eef4ee; }
.button.primary { color: #fff; background: #265d49; border-color: #265d49; }
.button.primary:not(:disabled):hover { background: #174737; border-color: #174737; }
.button.primary:disabled { opacity: .55; }
.button.received { color: #24634a; background: #eff6ef; border-color: #e1ebdf; }
.acknowledgement .button { width: 100%; }
.batch-controls { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 15px; margin-bottom: 16px; }
.batch-controls label { font-size: 13px; display: flex; align-items: center; gap: 8px; }
.batch-controls .badge { margin-left: auto; }
.upload { padding: 17px; margin-bottom: 16px; }
.upload-actions { display: flex; gap: 10px; margin-top: 14px; min-width: 0; flex-wrap: wrap; }
.file-button { flex: 1; display: flex; align-items: center; min-width: 150px; position: relative; padding: 8px 13px; border: 1px dashed #bdcfc3; border-radius: 8px; color: var(--green); font-size: 13px; min-height: 39px; }
.file-button input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.file-button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.review-header { padding: 17px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; }
.review-layout.with-preview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(235px, 37%); gap: 16px; align-items: start; }
.review { min-width: 0; overflow: hidden; }
.phone-preview { min-width: 0; padding: 14px; }
.preview-heading { display: flex; flex-direction: column; gap: 9px; margin-bottom: 13px; }
.preview-model { color: var(--muted); font-size: 12px; }
.preview-heading label { display: grid; gap: 5px; color: var(--muted); font-size: 12px; }
.preview-heading select { min-width: 0; width: 100%; padding: 7px 8px; border: 1px solid var(--line); border-radius: 6px; color: #21352f; background: #fff; text-overflow: ellipsis; }
.phone-frame { width: min(100%, 403px); margin-inline: auto; border: 5px solid #243731; border-radius: 32px; overflow: hidden; background: #f4f6f2; box-shadow: 0 0 0 1px #e0e6df; }
.phone-fit { position: relative; aspect-ratio: 393 / 852; overflow: hidden; }
.phone-device { position: absolute; inset: 0 auto auto 0; width: 393px; height: 852px; display: flex; flex-direction: column; transform: scale(var(--phone-scale, 1)); transform-origin: top left; }
.phone-camera { flex: 0 0 31px; width: 102px; margin: 10px auto 7px; border-radius: 999px; background: #243731; }
.phone-title { padding: 9px 13px 11px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 650; text-align: center; }
.phone-title span:not(:empty) { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; font-weight: 400; overflow-wrap: anywhere; }
.phone-screen { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; padding: 13px; scrollbar-width: thin; }
.phone-screen .hero-inner { padding: 19px 17px; }
.phone-screen .hero-label { margin-top: 19px; }
.phone-screen .hero-amount { font-size: 37px; margin-bottom: 18px; }
.phone-screen .section-heading { margin-top: 18px; }
.phone-screen .details { gap: 7px; }
.phone-home { flex: 0 0 5px; width: 134px; margin: 10px auto 8px; border-radius: 999px; background: #243731; }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
[data-preview-row] { cursor: pointer; }
[data-preview-row]:hover { background: #f5f8f4; }
[data-preview-row].preview-selected { background: #eaf3ec; }
.preview-row-button { background: none; border: 0; padding: 0; color: var(--green); font-weight: 650; text-align: left; }
.preview-row-button:focus-visible { border-radius: 2px; }
th, td { padding: 11px 13px; border-top: 1px solid var(--line); }
th { font-weight: 650; background: #f7f9f5; color: #465d51; }
th:first-child, td:first-child { text-align: left; }
td small { display: block; color: var(--muted); margin-top: 4px; }
.empty { display: grid; gap: 10px; justify-items: center; text-align: center; padding: 40px 20px; color: var(--muted); font-size: 14px; }
.empty h2 { color: #254033; }
.toast { position: fixed; z-index: 2; bottom: 22px; left: 50%; transform: translateX(-50%); max-width: min(540px, calc(100% - 26px)); background: var(--deep); color: #fff; border-radius: 9px; padding: 11px 16px; font-size: 14px; box-shadow: 0 6px 18px #193b3426; }
.toast.error { background: #843c31; }
dialog { max-width: min(420px, calc(100% - 28px)); border: 1px solid var(--line); border-radius: 14px; color: #1c302f; padding: 22px; }
dialog::backdrop { background: #10292085; }
dialog p { margin-top: 12px; line-height: 1.6; color: var(--muted); font-size: 14px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.loading { padding: 28px; color: var(--muted); text-align: center; }
.login-error { width: min(430px, calc(100% - 30px)); margin: 12vh auto; padding: 24px; display: grid; justify-items: start; gap: 13px; }
.login-error p { color: var(--muted); font-size: 14px; }

@media (max-width: 1070px) {
  .sidebar { width: 175px; }
  .workspace { margin-left: 175px; }
  .employee-grid { gap: 15px; }
  .detail { padding: 13px; }
}
@media (max-width: 860px) {
  .sidebar { display: none; }
  .workspace { margin-left: 0; }
}
@media (max-width: 650px) {
  .topbar { min-height: 53px; padding: 8px 13px; }
  .crumb { gap: 5px; }
  .crumb > span, .crumb svg, .account-name, .demo > span { display: none; }
  .demo { margin-right: 0; }
  #content { padding: 22px 13px 32px; }
  .heading { flex-wrap: wrap; margin-bottom: 17px; }
  .employee-grid { display: block; }
  .employee-other { margin-top: 15px; }
  .hero-inner { padding: 19px 17px; }
  .hero-label { margin-top: 19px; }
  .hero-amount { margin-bottom: 18px; }
  .details { gap: 7px; }
  .section-heading { margin-top: 18px; }
  .review-layout.with-preview { grid-template-columns: minmax(0, 1fr); }
  .access-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 370px) {
  .details { grid-template-columns: 1fr; }
}
