@import "/fonts/fonts.css";
:root {
  font-family:
    "Noto Sans SC",
    "Microsoft YaHei",
    Arial,
    sans-serif;
  color: #202e45;
  background: #f3f5f9;
  font-size: 16px;
  font-synthesis: none;
  --blue:#1769e0;
  --nav:#142848;
  --muted:#758198;
  --line:#e5eaf1;
  --radius:10px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}
button:disabled {
  cursor: not-allowed;
  opacity: .45;
}
a {
  color: var(--blue);
  text-decoration: none;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #cfd8e5;
  border-radius: 7px;
  background: white;
  color: #24344e;
  padding: 11px 12px;
  min-height: 43px;
  font-size: .94rem;
  line-height: 1.5;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #b4d0fb;
  border-color: #448ae9;
}
textarea {
  resize: vertical;
  min-height: 106px;
}
input[readonly] {
  background: #f2f5fa;
  color: #61718a;
}
input[type=checkbox] {
  width: 17px;
  height: 17px;
  min-height: 0;
  accent-color: var(--blue);
  margin: 0;
  flex-shrink: 0;
}
.scan-panel,.photo-panel{margin:20px 0;padding:18px;border:1px solid #cfdded;border-radius:10px;background:#f7faff}
.scan-panel h3,.photo-panel h3{margin:0 0 4px}
.scan-defaults{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0}
.scan-line{display:flex;gap:10px;margin-bottom:8px}.scan-line input{flex:1;min-width:0}.scan-line button{white-space:nowrap}
.scan-panel small{color:#536985}
.photo-panel input[type=file]{width:100%;min-height:50px;background:white}
.photo-grid{display:flex;flex-wrap:wrap;gap:12px;margin-top:12px}
.photo-grid img{display:block;width:118px;height:92px;object-fit:cover;border-radius:7px;border:1px solid #cbd7e6}
.photo-item{display:grid;gap:4px;text-align:center}
@media(max-width:600px){.scan-defaults{grid-template-columns:1fr}.scan-line button{min-width:76px}}
svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 1.75rem;
  letter-spacing: -.02em;
  margin-bottom: 9px;
}
h2 {
  font-size: 1.13rem;
}
h3 {
  font-size: 1rem;
}
p {
  line-height: 1.8;
}
.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 7px;
  padding: 10px 17px;
  font-size: .9rem;
  font-weight: 500;
  min-height: 43px;
  white-space: nowrap;
}
.primary {
  background: var(--blue);
  color: #fff;
  border: 1px solid var(--blue);
}
.primary:hover {
  background: #105bca;
}
.secondary {
  background: #fff;
  border: 1px solid #ccd7e5;
  color: #425773;
}
.secondary:hover {
  background: #f1f6fd;
}
.small {
  min-height: 35px;
  padding: 7px 12px;
  font-size: .875rem;
}
.link {
  padding: 4px 0;
  color: var(--blue);
  font-size: .875rem;
}
.danger {
  color: #bc4744;
}
.buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.shell {
  padding-left: 224px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 224px;
  background: var(--nav);
  color: #aebed5;
  display: flex;
  flex-direction: column;
  z-index: 20;
  padding: 28px 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 8px 32px;
  color: white;
}
.brand-icon {
  background: #247cec;
  color: #fff;
  width: 37px;
  height: 37px;
  border-radius: 9px;
  display: grid;
  place-items: center;
}
.brand strong {
  display: block;
  font-size: 1.18rem;
  letter-spacing: .06em;
}
.brand small {
  font-size: .8rem;
  color: #abbed8;
  display: block;
  margin-top: 5px;
}
.nav-group-label {
  font-size: .75rem;
  color: #8096b5;
  padding: 12px 13px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  width: 100%;
  padding: 14px 15px;
  border-radius: 7px;
  font-size: .94rem;
  margin-bottom: 6px;
}
.nav-item:hover {
  background: #1b3459;
}
.nav-item.active {
  background: #1769e0;
  color: #fff;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 20px 12px 0;
  border-top: 1px solid #2e4160;
  font-size: .75rem;
  line-height: 2;
  color: #8fa4c1;
}
.sidebar-bottom strong {
  display: block;
  color: #bdcbe0;
  font-size: .8rem;
  font-weight: 500;
}
.sidebar-bottom span {
  display: block;
}
.topbar {
  height: 78px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.breadcrumb {
  font-size: .875rem;
  color: #708099;
}
.breadcrumb span {
  margin: 0 13px;
  color: #bcc6d4;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.sync {
  font-size: .75rem;
  color: #77879b;
}
.user {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 0;
  font-size: .875rem;
}
.user small {
  display: block;
  font-size: .75rem;
  color: #7d8ca3;
  margin-top: 4px;
}
.avatar {
  background: #eaf1fc;
  color: #2264bf;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
}
.mobile-nav {
  display: none;
}
main {
  padding: 29px 30px 50px;
  max-width: 1720px;
  margin: auto;
}
.page-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  margin-bottom: 25px;
}
.page-title p {
  font-size: .9rem;
  color: var(--muted);
  margin: 0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
  margin-bottom: 23px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 21px 23px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 3px solid #dce7f8;
}
.stat.chosen {
  border-color: #7aabef;
}
.stat span {
  font-size: .9rem;
  color: #66788e;
}
.stat strong {
  font-size: 1.8rem;
  font-weight: 600;
  color: #244565;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.panel-toolbar {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.panel-toolbar h2 {
  margin: 0;
}
.segmented {
  display: flex;
  gap: 22px;
  font-size: .9rem;
}
.segmented button {
  padding: 7px 0;
  color: #7a879a;
}
.segmented .active {
  color: var(--blue);
  border-bottom: 2px solid var(--blue);
}
.filters {
  display: flex;
  gap: 10px;
}
.filters input {
  width: 240px;
}
.filters select {
  width: 120px;
}
.filters input,
.filters select {
  font-size: .875rem;
}
.table-wrap {
  width: 100%;
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  text-align: left;
}
th {
  font-size: .8rem;
  font-weight: 500;
  color: #708098;
  background: #f7f9fc;
  padding: 14px 20px;
  border-top: 1px solid #edf0f5;
  border-bottom: 1px solid var(--line);
}
td {
  font-size: .875rem;
  padding: 19px 20px;
  border-bottom: 1px solid #edf0f5;
  line-height: 1.7;
}
td small {
  display: block;
  color: #8c99ab;
  font-size: .75rem;
  margin-top: 4px;
}
td strong {
  font-weight: 500;
}
.ticket-link {
  text-align: left;
  padding: 0;
  color: #263f60;
  font-weight: 500;
  max-width: 340px;
  white-space: normal;
}
.ticket-link:hover {
  color: var(--blue);
}
tr:last-child td {
  border-bottom: 0;
}
.badge {
  display: inline-flex;
  align-items: center;
  font-size: .8rem;
  border-radius: 5px;
  padding: 4px 8px;
  background: #eff2f6;
  color: #60738b;
}
.badge.pending {
  background: #fff4dd;
  color: #9b7529;
}
.badge.assigned {
  background: #edf1ff;
  color: #5b6ead;
}
.badge.processing {
  background: #e9f2ff;
  color: #276bc0;
}
.badge.waiting {
  background: #f4edff;
  color: #8861b2;
}
.badge.review {
  background: #e6f5f5;
  color: #367e85;
}
.badge.closed {
  background: #e9f5ed;
  color: #4c8863;
}
.empty {
  text-align: center;
  padding: 70px 22px;
  color: #8a98ab;
}
.empty h3 {
  color: #677a94;
  font-weight: 500;
}
.empty p {
  font-size: .875rem;
}
.footnote {
  font-size: .75rem;
  color: #8290a3;
  margin: 17px 0;
}
.notice {
  background: #edf4ff;
  border: 1px solid #d3e4fc;
  border-radius: 8px;
  padding: 15px 18px;
  font-size: .875rem;
  color: #526e93;
  line-height: 1.8;
  margin-bottom: 22px;
}
.notice button {
  margin-left: 15px;
}
.notice.subtle {
  background: #fff9ed;
  border-color: #eee3c9;
  color: #8b7c5b;
}
.hint {
  font-size: .8rem;
  color: #8491a4;
  line-height: 1.75;
}
.error {
  font-size: .875rem;
  color: #bc3a3a;
  white-space: pre-wrap;
  line-height: 1.7;
}
.template-filter {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
}
.template-filter input {
  max-width: 430px;
}
.template-filter select {
  max-width: 170px;
}
.template-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.template-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 22px;
  display: flex;
  flex-direction: column;
}
.template-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  color: #7188a6;
}
.template-top small {
  font-size: .75rem;
  color: #8e9db1;
}
.template-card h2 {
  margin: 16px 0 10px;
  font-weight: 500;
  line-height: 1.6;
}
.template-card p {
  font-size: .875rem;
  color: #8491a3;
  flex: 1;
  line-height: 1.8;
  margin-bottom: 22px;
}
.template-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.guidance {
  padding: 22px;
  margin-top: 22px;
}
.guidance p {
  font-size: .9rem;
  color: #6b7e96;
  margin: 0;
}
.backdrop {
  position: fixed;
  inset: 0;
  background: #15274170;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
  backdrop-filter: blur(2px);
}
.dialog {
  background: white;
  border-radius: 12px;
  padding: 26px 30px;
  max-height: 92vh;
  overflow: auto;
  width: 590px;
  max-width: 100%;
  box-shadow: 0 15px 70px #14294830;
}
.dialog.wide {
  width: 850px;
}
.dialog-head {
  display: flex;
  gap: 25px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 22px;
}
.dialog-head h2 {
  font-size: 1.25rem;
  line-height: 1.6;
  margin: 0 0 6px;
}
.dialog-head p {
  font-size: .875rem;
  color: #8090a5;
  margin: 0;
  line-height: 1.8;
}
.icon-button {
  display: grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  border-radius: 7px;
  color: #8999ab;
}
.icon-button:hover {
  background: #eff3f9;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 22px;
}
.field {
  display: block;
  font-size: .875rem;
  line-height: 1.8;
  color: #4e617e;
}
.field input,
.field select,
.field textarea {
  display: block;
  margin-top: 7px;
}
.field.full {
  grid-column: 1/-1;
}
.field em {
  font-style: normal;
  color: #bd554a;
  margin-left: 3px;
}
.field small {
  font-size: .75rem;
  color: #7990ab;
  margin-left: 6px;
}
.dialog-footer {
  position: sticky;
  bottom: -26px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding: 18px 0 10px;
  border-top: 1px solid var(--line);
  margin-top: 22px;
  background: #fff;
  z-index: 2;
}
.dialog-footer .hint {
  margin-right: auto;
}
.linked-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #f2f6fc;
  border: 1px solid #dce6f4;
  border-radius: 8px;
  margin: 20px 0;
  padding: 14px 16px;
  font-size: .875rem;
}
.linked-info b {
  font-weight: 500;
  color: #3c6189;
}
.linked-info span {
  font-size: .8rem;
  color: #7f91a7;
}
.optional {
  padding: 16px;
  border: 1px solid var(--line);
  background: #fafbfd;
  border-radius: 8px;
  margin: 20px 0;
}
.optional summary,
.ticket-section summary {
  cursor: pointer;
  font-size: .9rem;
  color: #4d6483;
  font-weight: 500;
}
.optional .form-grid {
  margin-top: 18px;
}
.checkbox {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: .875rem;
  color: #536981;
  line-height: 1.6;
  margin: 17px 0;
}
.checkbox input {
  margin-top: 3px;
}
.project-checks {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  margin: 20px 0;
  font-size: .875rem;
}
.project-checks .checkbox {
  margin: 12px 0;
}
fieldset {
  padding: 0;
  margin: 0;
  border: 0;
  min-width: 0;
}
fieldset:disabled {
  opacity: .55;
}
.line-item {
  border: 1px solid #dce5f0;
  border-radius: 8px;
  padding: 18px;
  background: #fafcfe;
  margin-bottom: 16px;
}
.line-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .875rem;
  margin-bottom: 16px;
}
.section-title {
  margin: 24px 0 15px;
}
.drawer {
  position: absolute;
  inset: 0 0 0 auto;
  background: #fff;
  width: 760px;
  max-width: 100%;
  overflow: auto;
  box-shadow: -15px 0 60px #17294025;
}
.drawer > header {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 22px;
  padding: 22px 28px;
  z-index: 2;
}
.drawer header small {
  font-size: .75rem;
  color: #8b9bb0;
}
.drawer h2 {
  font-size: 1.35rem;
  margin: 8px 0 14px;
  line-height: 1.7;
}
.chips {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .8rem;
  color: #7c8fa5;
}
.drawer-body {
  padding: 25px 28px;
}
.responsibility {
  background: #f5f8fc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 16px;
}
.responsibility small {
  display: block;
  font-size: .75rem;
  color: #8594a7;
  margin-bottom: 7px;
}
.responsibility b {
  font-size: .9rem;
  font-weight: 500;
}
.action-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.ticket-section {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 22px;
}
.ticket-section h3 {
  font-weight: 500;
  margin-bottom: 16px;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 0;
  border-bottom: 1px solid #edf1f6;
}
.check {
  font-size: 1.15rem;
  color: #b1bdcd;
}
.check.done {
  color: #298162;
}
.check-row > div {
  flex: 1;
}
.check-row b {
  font-size: .875rem;
  font-weight: 500;
}
.check-row small {
  display: block;
  font-size: .75rem;
  color: #8798af;
  margin-top: 6px;
}
.add-other {
  margin-top: 20px;
}
.workflow-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
  margin: 20px 0;
}
.workflow-list li {
  background: #f6f8fb;
  border: 1px solid var(--line);
  padding: 12px 15px;
  border-radius: 7px;
  font-size: .875rem;
}
.workflow-list li.current {
  border-color: #81ade9;
  background: #f0f6ff;
}
.workflow-list strong {
  font-weight: 500;
  display: block;
}
.workflow-list span {
  font-size: .75rem;
  color: #8494a8;
  display: block;
  margin-top: 4px;
}
.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
  font-size: .875rem;
  margin: 20px 0;
}
.details-grid dt {
  font-size: .75rem;
  color: #8a9aae;
  margin-bottom: 7px;
}
.details-grid dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.preserve {
  font-size: .9rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.money {
  background: #eef6ff;
  padding: 12px;
  font-size: 1rem;
  border-radius: 6px;
}
.saved-record {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  margin-bottom: 10px;
  font-size: .875rem;
}
.saved-record:hover {
  background: #f4f8fd;
}
.saved-record small {
  display: block;
  font-size: .75rem;
  color: #8a9aaf;
  margin-top: 6px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
}
.section-head h2,
.section-head h3 {
  margin: 0;
}
.history {
  padding: 0 0 20px 18px;
  border-left: 2px solid #e8eef6;
  margin-left: 5px;
  position: relative;
}
.history:before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a0bfeb;
  left: -5px;
  top: 8px;
}
.history b {
  font-size: .875rem;
  font-weight: 500;
}
.history small {
  display: block;
  font-size: .75rem;
  color: #8d9baf;
  margin-top: 5px;
}
.history p {
  font-size: .875rem;
  color: #6c7f98;
  margin: 8px 0 0;
  white-space: pre-wrap;
}
.record-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}
.record-sheet {
  border: 1px solid #dce3ec;
  padding: 26px;
  font-size: .875rem;
}
.record-sheet > small {
  color: #71849f;
  font-size: .8rem;
}
.record-sheet h2 {
  font-size: 1.4rem;
  margin-top: 15px;
}
.record-sheet h3 {
  font-size: .875rem;
  margin: 22px 0 6px;
}
.record-sheet p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.record-sheet table {
  white-space: normal;
}
.record-sheet td,
.record-sheet th {
  font-size: .75rem;
  padding: 9px;
  border: 1px solid var(--line);
}
.signature {
  margin-top: 35px;
}
.config-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
}
.config-tabs button {
  padding: 16px 28px;
  font-size: .9rem;
  border-right: 1px solid var(--line);
  color: #6e839e;
}
.config-tabs button.active {
  background: #1769e0;
  color: #fff;
}
.config-tabs > span {
  margin-left: auto;
  font-size: .75rem;
  color: #92a1b5;
  padding: 0 20px;
}
.config-base {
  padding: 28px;
  max-width: 950px;
}
.config-base .notice {
  margin: 24px 0 0;
}
.design-workspace {
  display: grid;
  grid-template-columns: 210px minmax(300px, 1fr) 265px;
  gap: 16px;
  align-items: start;
}
.template-picker {
  padding: 18px 12px;
}
.template-picker h3 {
  padding: 0 10px;
  color: #6b7f9d;
}
.template-picker button {
  display: block;
  width: 100%;
  text-align: left;
  border-radius: 6px;
  font-size: .875rem;
  line-height: 1.7;
  color: #718198;
  padding: 11px;
  margin: 3px 0;
}
.template-picker button.active {
  background: #eaf2fe;
  color: #216bca;
}
.field-canvas {
  padding: 23px;
}
.field-preview {
  border: 1px solid #dce5f1;
  border-radius: 7px;
  display: flex;
  justify-content: space-between;
  margin: 13px 0;
  background: #fbfcfe;
}
.field-preview.selected {
  border-color: #488de8;
  background: #f1f6fe;
}
.field-preview > button {
  display: block;
  text-align: left;
  padding: 16px;
  flex: 1;
  min-width: 0;
}
.field-preview span {
  display: block;
  font-size: .875rem;
}
.field-preview small {
  display: block;
  font-size: .75rem;
  color: #8b9caf;
  margin-top: 7px;
}
.field-preview > div {
  padding: 10px 9px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #6d8cb5;
}
.field-preview > div button {
  height: 28px;
  width: 28px;
}
.field-properties {
  padding: 22px;
}
.field-properties h3 {
  margin-bottom: 20px;
}
.field-properties .field {
  margin-bottom: 17px;
}
.visibility-roles {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 18px;
}
.visibility-roles strong {
  font-size: .875rem;
  font-weight: 500;
}
.visibility-roles .checkbox {
  margin: 11px 0;
}
.field-id {
  font-size: .75rem;
  color: #99a6b8;
  overflow-wrap: anywhere;
  margin-top: 25px;
}
.workflow-editor {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 18px;
}
.workflow-picker {
  padding: 20px;
}
.workflow-picker button {
  display: block;
  padding: 14px;
  width: 100%;
  text-align: left;
  font-size: .9rem;
  border-radius: 6px;
  color: #6e84a0;
}
.workflow-picker button.active {
  background: #edf4ff;
  color: #1d6acb;
}
.flow-steps {
  padding: 25px;
}
.flow-step {
  display: flex;
  align-items: flex-start;
  gap: 17px;
  border: 1px solid #dce5f1;
  border-radius: 9px;
  padding: 20px;
  margin-bottom: 18px;
  background: #fcfdff;
}
.step-index {
  background: #e8f1fd;
  color: #3273c5;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: .9rem;
  flex-shrink: 0;
  margin-top: 6px;
}
.step-content {
  flex: 1;
  min-width: 0;
}
.step-forms {
  margin: 18px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}
.step-forms strong {
  grid-column: 1/-1;
  font-size: .875rem;
  font-weight: 500;
  margin-bottom: 7px;
}
.step-forms .checkbox {
  margin: 7px 0;
  font-size: .8rem;
}
.draft-float {
  position: fixed;
  bottom: 25px;
  right: 27px;
  background: #fff;
  border: 1px solid #a8c5ef;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 5px 22px #22476912;
  font-size: .875rem;
  color: #3676c9;
}
.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 25px;
}
.login-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 40px;
  width: 480px;
  max-width: 100%;
}
.login-card h1 {
  font-size: 1.35rem;
  margin: 20px 0;
}
.login-card p {
  font-size: .9rem;
  color: #7b8fa7;
}
.login-card label {
  display: block;
  font-size: .875rem;
  margin-bottom: 18px;
}
.login-card input {
  margin-top: 8px;
}
.login-card .primary {
  width: 100%;
}
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  pointer-events: none;
  background: #233c5f;
  color: #fff;
  box-shadow: 0 6px 22px #20385725;
  border-radius: 8px;
  padding: 13px 22px;
  font-size: .875rem;
  z-index: 300;
  max-width: 85vw;
  white-space: pre-line;
  transition: .2s;
}
#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
@media (max-width: 1250px) {
  .design-workspace {
    grid-template-columns: 185px 1fr 230px;
    gap: 12px;
  }
  .shell {
    padding-left: 205px;
  }
  .sidebar {
    width: 205px;
  }
  main {
    padding: 26px 22px;
  }
  .template-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .field-canvas {
    padding: 18px;
  }
  .field-properties {
    padding: 18px;
  }
  .topbar {
    padding: 0 22px;
  }
  .filters {
    flex-wrap: wrap;
  }
  .sync {
    display: none;
  }
}
@media (max-width: 950px) {
  .design-workspace {
    grid-template-columns: 170px 1fr;
  }
  .field-properties {
    grid-column: 2;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 18px 15px;
  }
  .stat strong {
    font-size: 1.5rem;
  }
  .topbar {
    height: 72px;
  }
  .breadcrumb {
    font-size: .8rem;
  }
  .template-filter {
    flex-wrap: wrap;
  }
  .workflow-editor {
    grid-template-columns: 150px 1fr;
  }
  .step-forms {
    grid-template-columns: 1fr;
  }
  .workflow-picker {
    padding: 13px;
  }
}
@media (max-width: 750px) {
  .shell {
    padding-left: 0;
  }
  .sidebar {
    display: none;
  }
  .sidebar.open {
    display: flex;
    width: 230px;
    box-shadow: 20px 0 80px #10284860;
  }
  .mobile-nav {
    display: block;
    font-size: 1.2rem;
    padding: 5px;
  }
  .topbar {
    padding: 0 16px;
    gap: 10px;
  }
  .breadcrumb {
    display: none;
  }
  .top-actions {
    margin-left: auto;
    gap: 12px;
  }
  .top-actions .small {
    font-size: .8rem;
    min-height: 33px;
  }
  .user {
    font-size: .8rem;
  }
  .user small {
    font-size: .75rem;
  }
  main {
    padding: 23px 16px 60px;
  }
  .page-title {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 22px;
  }
  .page-title h1 {
    font-size: 1.5rem;
  }
  .page-title p {
    font-size: .875rem;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .stat {
    padding: 17px;
  }
  .panel-toolbar {
    padding: 16px;
    gap: 16px;
  }
  .filters {
    width: 100%;
    gap: 8px;
  }
  .filters input {
    width: 100%;
    flex-basis: 100%;
  }
  .filters select {
    flex: 1;
  }
  .template-grid {
    grid-template-columns: 1fr;
  }
  .template-filter {
    gap: 10px;
  }
  .template-filter input {
    flex-basis: 100%;
    max-width: none;
  }
  .template-filter select {
    flex: 1;
    max-width: none;
  }
  .template-filter a {
    font-size: .8rem;
    padding: 9px 12px;
  }
  .template-card {
    padding: 22px;
  }
  .notice {
    padding: 13px 15px;
  }
  .notice button {
    margin: 10px 10px 0 0;
  }
  .backdrop {
    padding: 12px;
  }
  .dialog,
  .dialog.wide {
    padding: 22px 18px;
    max-height: 94dvh;
  }
  .dialog-head {
    margin-bottom: 20px;
  }
  .dialog-head h2 {
    font-size: 1.13rem;
  }
  .dialog-footer {
    bottom: -22px;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 8px;
  }
  .dialog-footer .hint {
    flex-basis: 100%;
    font-size: .75rem;
  }
  .dialog-footer button {
    flex: 1;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }
  input,
  select,
  textarea {
    font-size: 1rem;
  }
  .field {
    font-size: .9rem;
  }
  .record-sheet {
    padding: 16px;
  }
  .drawer > header {
    padding: 20px 18px;
  }
  .drawer-body {
    padding: 20px 17px;
  }
  .responsibility {
    grid-template-columns: 1fr 1fr;
    gap: 17px;
  }
  .responsibility > div:first-child {
    grid-column: 1/-1;
  }
  .action-bar .primary,
  .action-bar .secondary {
    font-size: .875rem;
    padding: 9px 12px;
  }
  .check-row b {
    font-size: .8rem;
  }
  .check-row .small {
    font-size: .8rem;
    padding: 6px 9px;
  }
  .record-actions {
    flex-wrap: wrap;
  }
  .details-grid {
    gap: 16px;
  }
  .config-tabs button {
    flex: 1;
    padding: 13px 10px;
    font-size: .85rem;
  }
  .config-tabs > span {
    display: none;
  }
  .design-workspace {
    grid-template-columns: 1fr;
  }
  .template-picker {
    max-height: 230px;
    overflow: auto;
  }
  .field-properties {
    grid-column: auto;
  }
  .field-canvas .section-head {
    gap: 10px;
  }
  .field-canvas h2 {
    font-size: 1rem;
  }
  .workflow-editor {
    grid-template-columns: 1fr;
  }
  .workflow-picker {
    display: flex;
    overflow-x: auto;
    align-items: center;
  }
  .workflow-picker h3 {
    display: none;
  }
  .workflow-picker button {
    white-space: nowrap;
    min-width: 80px;
    text-align: center;
    padding: 11px;
  }
  .flow-steps {
    padding: 16px;
  }
  .flow-step {
    gap: 10px;
    padding: 14px;
  }
  .step-index {
    width: 25px;
    height: 25px;
  }
  .config-base {
    padding: 21px;
  }
  .login-card {
    padding: 28px;
  }
  .record-sheet .details-grid {
    grid-template-columns: 1fr;
  }
  .record-sheet td,
  .record-sheet th {
    padding: 6px;
  }
  .footnote {
    line-height: 1.8;
  }
  .signature {
    font-size: .8rem;
  }
}
@media print {
  body * {
    visibility: hidden;
  }
  #record-sheet,
  #record-sheet * {
    visibility: visible;
  }
  #record-sheet {
    position: absolute;
    left: 0;
    top: 0;
    border: 0;
    padding: 0;
    font-size: 12px;
    width: 100%;
  }
  .backdrop,
  .dialog {
    position: static;
    display: block;
    padding: 0;
    overflow: visible;
    max-height: none;
    width: 100%;
    background: #fff;
    box-shadow: none;
  }
  .record-sheet section {
    break-inside: avoid;
  }
  .record-sheet .table-wrap {
    overflow: visible;
  }
  .record-sheet table {
    table-layout: fixed;
  }
  .record-sheet td,
  .record-sheet th {
    overflow-wrap: anywhere;
  }
  .record-sheet .details-grid {
    grid-template-columns: 1fr 1fr;
  }
  @page {
    size: A4;
    margin: 15mm;
  }
}
