:root {
    font-family: system-ui, 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
    color: #233a35;
    background: #f6f8f7;
    font-size: 14px;
    --green: #195f4d;
    --mint: #e5f2ec;
    --muted: #8a9591;
    --line: #e9eeeb;
    --ink: #223c34
}

* {
    box-sizing: border-box
}

body {
    margin: 0
}

button,
input,
select,
textarea {
    font: inherit
}

button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent
}

button,
a {
    transition: .18s
}

button {
    cursor: pointer
}

button:disabled {
    opacity: .5;
    cursor: not-allowed
}

button {
    border: 0;
    background: transparent;
    color: inherit
}

a {
    color: inherit;
    text-decoration: none
}

svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.6;
    flex-shrink: 0;
    vertical-align: middle
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid #86bb9e;
    outline-offset: 3px
}

.shell {
    display: flex;
    min-height: 100vh
}

.sidebar {
    width: 222px;
    position: fixed;
    inset: 0 auto 0 0;
    background: #fff;
    border-right: 1px solid var(--line);
    padding: 31px 18px 17px;
    display: flex;
    flex-direction: column;
    z-index: 30
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    margin-bottom: 45px
}

.brand-mark {
    display: grid;
    place-items: center;
    background: var(--green);
    color: white;
    border-radius: 12px;
    width: 48px;
    height: 48px;
    box-shadow: 0 3px 6px #195f4d12
}

.brand strong {
    font-size: 23px;
    letter-spacing: 2px
}

.brand small {
    display: block;
    font-size: 10px;
    color: #8d9992;
    letter-spacing: 2px;
    margin-top: 2px
}

.nav-label {
    font-size: 10px;
    letter-spacing: 2px;
    color: #a6afaa;
    padding: 0 16px;
    margin: 8px 0 14px
}

.nav {
    display: flex;
    flex-direction: column;
    gap: 7px
}

.nav a {
    padding: 12px 16px;
    display: flex;
    gap: 13px;
    align-items: center;
    border-radius: 7px;
    color: #6c7a73;
    font-size: 13px
}

.nav a.active {
    color: #185a46;
    background: #e9f3ed;
    font-weight: 600
}

.nav a:hover {
    background: #f0f5f2;
    color: var(--green)
}

.nav .count {
    margin-left: auto;
    background: #fff;
    border-radius: 4px;
    padding: 0 6px;
    font-size: 10px
}

.nav-divider {
    height: 1px;
    background: var(--line);
    margin: 24px 12px
}

.sidebar-bottom {
    margin-top: auto;
    padding-top: 35px
}

.plan-mini {
    background: linear-gradient(130deg, #f0f6f1, #e8f1e9);
    border: 1px solid #e2ece4;
    border-radius: 10px;
    padding: 15px 13px;
    margin: 0 3px 18px
}

.plan-mini .mini-title {
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center
}

.plan-mini p {
    font-size: 12px;
    color: #7c8d80;
    margin: 10px 0
}

.meter {
    height: 4px;
    background: #d4e4d7;
    border-radius: 5px;
    overflow: hidden
}

.meter i {
    display: block;
    height: 100%;
    background: #669a71
}

.plan-mini a {
    display: block;
    background: white;
    text-align: center;
    font-size: 12px;
    margin-top: 12px;
    padding: 7px;
    border: 1px solid #e0e9e1;
    border-radius: 5px;
    color: #507652
}

.support {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #929d96;
    font-size: 12px
}

.main {
    margin-left: 222px;
    min-width: 0;
    width: calc(100% - 222px)
}

.topbar {
    height: 78px;
    padding: 0 39px;
    border-bottom: 1px solid var(--line);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 12px;
    color: #9aa49f
}

.breadcrumb span {
    color: #41584b
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 12px
}

.demo-pill {
    background: #f4f6f2;
    color: #8a916f;
    border: 1px solid #e7ebdf;
    border-radius: 5px;
    padding: 4px 8px;
    font-size: 10px
}

.icon-button {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    color: #7f8f85;
    position: relative
}

.icon-button:hover {
    background: var(--mint)
}

.notif-dot {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #c89d58;
    right: 7px;
    top: 5px
}

.user {
    display: flex;
    align-items: center;
    gap: 9px;
    border-left: 1px solid var(--line);
    padding-left: 20px
}

.avatar {
    width: 31px;
    height: 31px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 12px;
    background: #eaf0e8;
    color: #527553
}

.content {
    max-width: 1480px;
    margin: 0 auto;
    padding: 32px 39px 22px
}

.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 15px
}

.page-heading h1 {
    font-size: 25px;
    letter-spacing: 1px;
    font-weight: 600;
    margin: 0 0 8px
}

.page-heading p {
    font-size: 12px;
    color: #8b9891;
    margin: 0
}

.date-tag {
    display: flex;
    align-items: center;
    color: #8a968f;
    font-size: 12px;
    gap: 7px
}

.hero {
    border-radius: 12px;
    background: #eaf1e9;
    position: relative;
    overflow: hidden;
    min-height: 200px;
    padding: 29px 33px;
    display: flex;
    justify-content: space-between;
    border: 1px solid #e0e8de
}

.hero-copy {
    position: relative;
    z-index: 1
}

.eyebrow {
    font-size: 10px;
    letter-spacing: 2px;
    color: #65866a;
    display: flex;
    align-items: center;
    gap: 8px
}

.eyebrow::before {
    content: '';
    width: 15px;
    height: 1px;
    background: #759a72
}

.hero h2 {
    font-size: 25px;
    line-height: 1.5;
    font-weight: 600;
    margin: 9px 0 8px;
    letter-spacing: 1px
}

.hero p {
    color: #81937f;
    font-size: 12px;
    margin: 0 0 24px
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #dce5df;
    border-radius: 6px;
    padding: 10px 17px;
    background: #fff;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap
}

.btn svg {
    width: 16px;
    height: 16px
}

.btn:hover {
    background: #f2f6f2;
    border-color: #afc9b8
}

.btn.primary {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
    box-shadow: 0 3px 6px #195f4d10
}

.btn.primary:hover {
    background: #124e3d
}

.btn.ghost {
    background: #ffffff7d;
    color: #4c7055;
    border-color: #cfddcd
}

.btn.small {
    padding: 6px 11px;
    font-size: 12px
}

.btn.danger {
    color: #aa4e44
}

.button-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap
}

.hero-art {
    width: 300px;
    position: relative;
    margin: -15px 15px -30px 0;
    flex-shrink: 0
}

.orbit {
    position: absolute;
    inset: 0;
    border: 1px solid #d9e5d5;
    border-radius: 50%;
    transform: rotate(-22deg) scale(1.13)
}

.orbit.two {
    inset: 18px -32px;
    transform: rotate(25deg);
    border-color: #dce7d6
}

.paper-art {
    width: 143px;
    height: 172px;
    background: linear-gradient(110deg, #fff, #fafcf8);
    position: absolute;
    left: 72px;
    top: 14px;
    transform: rotate(9deg);
    border-radius: 5px;
    box-shadow: 6px 12px 25px #54744c16;
    padding: 21px
}

.paper-art:before {
    content: '法律催告函';
    font-family: serif;
    font-size: 13px;
    display: block;
    text-align: center;
    color: #758671;
    margin-bottom: 20px
}

.paper-line {
    height: 3px;
    background: #dfe6da;
    margin: 8px 0;
    border-radius: 3px
}

.paper-line.short {
    width: 65%
}

.seal-art {
    position: absolute;
    right: 22px;
    bottom: 22px;
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border: 2px solid #b57f6c99;
    color: #b57f6c99;
    border-radius: 50%;
    font-size: 20px;
    transform: rotate(-15deg)
}

.float-badge {
    position: absolute;
    border-radius: 8px;
    padding: 12px;
    background: #fff;
    box-shadow: 0 5px 14px #49693c0c;
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 10px;
    color: #76876f
}

.float-badge svg {
    color: #73966b;
    width: 18px
}

.float-badge.first {
    left: 8px;
    top: 46px;
    transform: rotate(-5deg)
}

.float-badge.last {
    right: -12px;
    bottom: 28px;
    transform: rotate(5deg)
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 24px 0
}

.stat {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 20px 21px
}

.stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #85938a;
    font-size: 12px
}

.stat-icon {
    background: #f0f5f0;
    border-radius: 6px;
    padding: 7px;
    display: grid;
    place-items: center;
    color: #7b9c7b
}

.stat-icon svg {
    width: 16px;
    height: 16px
}

.stat-value {
    font-size: 29px;
    letter-spacing: 1px;
    font-weight: 600;
    margin: 4px 0 9px
}

.stat-value small {
    font-size: 12px;
    font-weight: 400;
    color: #9aa79e;
    letter-spacing: 0;
    margin-left: 6px
}

.stat-foot {
    font-size: 10px;
    color: #9aa69e;
    display: flex;
    gap: 7px;
    align-items: center
}

.positive {
    color: #6b9976
}

.amber {
    color: #bd985d
}

.grid-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 289px;
    gap: 24px
}

.panel {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    overflow: hidden
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 20px;
    gap: 10px
}

.panel-head h2 {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 9px
}

.panel-head h2 small {
    color: #9daa9f;
    font-size: 10px;
    font-weight: 400
}

.text-link {
    font-size: 12px;
    color: #8b9a90;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer
}

.text-link:hover {
    color: var(--green)
}

.text-link svg {
    width: 13px;
    height: 13px
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 0 21px 22px;
    gap: 13px
}

.quick-card {
    border: 1px solid #e8ede7;
    border-radius: 7px;
    text-align: left;
    padding: 15px 13px;
    background: #fff;
    position: relative
}

.quick-card:hover {
    border-color: #a4bda9;
    background: #f7faf6;
    transform: translateY(-2px)
}

.quick-icon {
    border-radius: 7px;
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    margin-bottom: 12px;
    background: #edf4eb;
    color: #83a274
}

.quick-card:nth-child(2) .quick-icon {
    background: #f5f0e6;
    color: #baa272
}

.quick-card:nth-child(3) .quick-icon {
    background: #eef2f5;
    color: #869da9
}

.quick-card h3 {
    font-size: 12px;
    font-weight: 500;
    margin: 0 0 7px
}

.quick-card p {
    font-size: 10px;
    color: #9ba59d;
    margin: 0;
    line-height: 1.7
}

.quick-card>.arrow {
    position: absolute;
    right: 12px;
    top: 20px;
    color: #a6b3a5;
    width: 13px
}

.right-stack {
    display: flex;
    flex-direction: column;
    gap: 21px
}

.workflow {
    padding: 0 23px 20px;
    display: grid;
    gap: 0
}

.workflow-step {
    position: relative;
    display: flex;
    gap: 13px;
    padding: 0 0 22px
}

.workflow-step:last-child {
    padding-bottom: 0
}

.workflow-step:not(:last-child):before {
    content: '';
    position: absolute;
    left: 13px;
    top: 30px;
    height: calc(100% - 30px);
    border-left: 1px dashed #dce5db
}

.workflow-no {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #e5ece1;
    background: #f5f8f2;
    color: #8b9f7d;
    font-family: Georgia;
    font-size: 12px;
    flex-shrink: 0
}

.workflow-step h3 {
    font-size: 12px;
    margin: 2px 0 5px;
    font-weight: 500
}

.workflow-step p {
    font-size: 10px;
    color: #9ba69d;
    margin: 0
}

.section-spacer {
    margin-top: 24px
}

.toolbar {
    padding: 0 22px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap
}

.tabs {
    display: flex;
    gap: 20px;
    font-size: 12px
}

.tab {
    padding: 5px 0 9px;
    color: #94a097;
    position: relative;
    border-bottom: 2px solid transparent
}

.tab.active {
    color: var(--green);
    border-color: var(--green);
    font-weight: 500
}

.tab em {
    font-size: 10px;
    display: inline-block;
    background: #eff3ee;
    padding: 1px 5px;
    border-radius: 4px;
    font-style: normal;
    margin-left: 4px
}

.search {
    display: flex;
    align-items: center;
    gap: 7px;
    border: 1px solid #e8ede8;
    border-radius: 5px;
    background: #fff;
    padding: 7px 10px;
    min-width: 170px
}

.search svg {
    width: 13px;
    height: 13px;
    color: #a0aaa2
}

.search input {
    border: 0;
    outline: none;
    width: 150px;
    font-size: 10px;
    background: transparent;
    color: var(--ink)
}

.table-wrap {
    overflow: auto
}

table {
    border-collapse: collapse;
    width: 100%;
    white-space: nowrap;
    font-size: 12px
}

th {
    text-align: left;
    background: #f8faf7;
    color: #96a195;
    font-weight: 400;
    padding: 12px 17px;
    border-block: 1px solid #eff2ed
}

th:first-child,
td:first-child {
    padding-left: 23px
}

td {
    padding: 16px 17px;
    border-bottom: 1px solid #eff2ed;
    color: #7e8d80
}

tbody tr:last-child td {
    border-bottom: 0
}

tbody tr:hover {
    background: #fbfdf9
}

.title-cell {
    color: #4c6451;
    display: flex;
    align-items: center;
    gap: 10px
}

.doc-icon {
    width: 28px;
    height: 32px;
    border: 1px solid #e3eae0;
    border-radius: 4px;
    display: grid;
    place-items: center;
    color: #8eaa84;
    background: #fcfdf9
}

.doc-icon svg {
    width: 16px;
    height: 16px
}

.title-cell strong {
    display: block;
    font-size: 12px;
    font-weight: 500
}

.title-cell small {
    display: block;
    font-size: 10px;
    color: #a2aca0;
    margin-top: 4px
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    padding: 4px 7px;
    border-radius: 4px;
    background: #edf5ed;
    color: #6b9670
}

.badge:before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor
}

.badge.warn {
    background: #fbf5e7;
    color: #bd9a58
}

.badge.neutral {
    background: #f0f3f0;
    color: #949e91
}

.badge.fail {
    background: #fbefeb;
    color: #b56c5d
}

.table-footer {
    padding: 14px 23px;
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #a2aca0;
    border-top: 1px solid var(--line)
}

.pagination {
    display: flex;
    gap: 6px;
    align-items: center
}

.pagination button {
    border: 1px solid #e6ece2;
    border-radius: 4px;
    min-width: 23px;
    height: 23px;
    font-size: 10px
}

.pagination button.active {
    background: #edf5e9;
    color: #6e925d
}

.notice-card {
    background: #fafbf7;
    padding: 20px 21px;
    border: 1px solid #e9eddf;
    border-radius: 10px
}

.notice-card h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
    margin: 0 0 12px
}

.notice-card h3 svg {
    color: #a4a97e;
    width: 16px;
    height: 16px
}

.notice-card p {
    font-size: 10px;
    line-height: 1.9;
    color: #9ba18b;
    margin: 0
}

.notice-card a {
    display: flex;
    margin-top: 15px;
    color: #7b8d69;
    font-size: 10px;
    gap: 7px;
    align-items: center
}

.notice-card a svg {
    width: 12px;
    height: 12px
}

.footer {
    font-size: 10px;
    color: #a7b0a6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0 0;
    gap: 10px
}

.footer span {
    display: flex;
    gap: 6px;
    align-items: center
}

.footer svg {
    width: 12px;
    height: 12px
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px
}

.template-card {
    border: 1px solid var(--line);
    background: white;
    border-radius: 10px;
    padding: 23px;
    position: relative
}

.template-card .preview-mini {
    background: #f4f6f0;
    height: 145px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    border-radius: 6px;
    color: #879c7a
}

.preview-mini svg {
    width: 55px;
    height: 55px;
    stroke-width: 1
}

.template-card h3 {
    font-size: 15px;
    font-weight: 500;
    margin: 0 0 9px
}

.template-card p {
    font-size: 12px;
    color: #94a08f;
    line-height: 1.9;
    min-height: 42px
}

.template-card .tag {
    position: absolute;
    top: 32px;
    right: 32px;
    font-size: 10px;
    color: #879674;
    border: 1px solid #dce5d2;
    background: #fff;
    padding: 3px 7px;
    border-radius: 3px
}

.template-card .button-row {
    justify-content: space-between;
    margin-top: 18px
}

.template-card small {
    font-size: 10px;
    color: #a1aa9a
}

.callout {
    padding: 14px 18px;
    background: #f0f5ed;
    border: 1px solid #e0e9da;
    color: #7e9272;
    border-radius: 7px;
    font-size: 12px;
    line-height: 1.8;
    display: flex;
    gap: 9px;
    margin: 0 0 24px
}

.callout+.callout {
    margin-top: 16px
}

.callout svg {
    width: 17px;
    height: 17px;
    margin-top: 2px
}

.callout.warn {
    background: #fcf7ed;
    color: #aa8f5d;
    border-color: #efe3c9
}

.stepper {
    display: flex;
    margin-bottom: 24px;
    justify-content: space-between;
    padding: 18px 27px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 9px
}

.step-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #a5ada1
}

.step-item i {
    font-style: normal;
    display: grid;
    place-items: center;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    background: #f0f4ed;
    font-size: 11px
}

.step-item.active {
    color: var(--green);
    font-weight: 500
}

.step-item.active i {
    background: var(--green);
    color: #fff
}

.step-connector {
    height: 1px;
    width: 7%;
    background: #e6ece1;
    align-self: center
}

.editor-grid {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 24px
}

.form-panel {
    padding: 24px
}

.form-panel h2 {
    font-size: 14px;
    margin: 0 0 24px;
    font-weight: 500
}

.form-panel h2.section-spacer {
    margin-top: 32px
}

.field {
    margin-bottom: 16px
}

.field label {
    display: block;
    color: #6e806c;
    font-size: 12px;
    margin-bottom: 8px
}

.field label b {
    color: #c29470;
    font-weight: 400
}

.field input,
.field select,
.field textarea {
    width: 100%;
    border: 1px solid #e0e7dc;
    border-radius: 5px;
    background: #fff;
    padding: 10px 11px;
    color: #4c6346;
    outline: none;
    font-size: 13px
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: #7caa7e;
    box-shadow: 0 0 0 3px #eaf2e5
}

.field textarea {
    resize: vertical;
    min-height: 82px;
    line-height: 1.8
}

.field small {
    font-size: 12px;
    color: #a0aa98;
    display: block;
    margin-top: 8px;
    line-height: 1.7
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px
}

.document-panel {
    background: #e9ede6;
    border: 1px solid #e1e7dc;
    border-radius: 10px;
    padding: 24px;
    min-width: 0
}

.doc-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #819078;
    font-size: 12px;
    margin-bottom: 16px
}

.document {
    max-width: 640px;
    margin: 0 auto;
    background: #fffdf9;
    border: 1px solid #e3e5db;
    padding: 44px 43px;
    min-height: 600px;
    box-shadow: 0 6px 22px #46513c08;
    position: relative
}

.document h2 {
    text-align: center;
    color: #343f32;
    font-size: 23px;
    font-family: 'SimSun', serif;
    letter-spacing: 5px;
    margin: 0 0 12px
}

.document .doc-ref {
    text-align: right;
    font-size: 10px;
    color: #8d9287;
    margin: 0 0 29px
}

.document textarea {
    font-family: 'SimSun', 'Noto Serif SC', serif;
    width: 100%;
    border: 0;
    resize: vertical;
    min-height: 360px;
    outline: none;
    line-height: 2.2;
    font-size: 14px;
    color: #4e5549;
    background: transparent
}

.document .doc-body {
    white-space: pre-wrap;
    font-family: 'SimSun', serif;
    line-height: 2.2;
    font-size: 14px;
    overflow-wrap: anywhere
}

.document .doc-sign {
    text-align: right;
    font-size: 12px;
    line-height: 2;
    margin-top: 25px
}

.signature-seal {
    border: 3px double #bf5f52;
    width: 118px;
    height: 118px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #bf5f52;
    font-size: 12px;
    position: absolute;
    bottom: 28px;
    right: 38px;
    transform: rotate(-12deg);
    padding: 12px;
    opacity: .85;
    overflow-wrap: anywhere;
    background: #fff1e822
}

.signature-seal small {
    font-size: 10px;
    display: block
}

.wizard-bottom {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
    gap: 10px
}

.package-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px
}

.package {
    position: relative;
    padding: 27px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px
}

.package.featured {
    border: 1.5px solid #729c6d;
    box-shadow: 0 4px 14px #678c5c0a
}

.package .ribbon {
    position: absolute;
    top: -11px;
    right: 20px;
    border-radius: 4px;
    background: #719567;
    color: white;
    padding: 4px 11px;
    font-size: 10px
}

.package h3 {
    font-size: 14px;
    font-weight: 500
}

.price {
    font-size: 34px;
    font-weight: 600;
    letter-spacing: -1px;
    margin: 22px 0 8px
}

.price small {
    font-size: 15px;
    letter-spacing: 0
}

.package p {
    font-size: 12px;
    color: #96a08f
}

.package ul {
    padding: 17px 0;
    list-style: none;
    line-height: 2.5;
    color: #8c9883;
    font-size: 12px;
    border-top: 1px solid #edf0e8;
    margin-top: 20px
}

.package li:before {
    content: '✓';
    color: #769267;
    margin-right: 9px
}

.package .btn {
    width: 100%
}

.summary-strip {
    display: flex;
    gap: 25px;
    background: white;
    border: 1px solid var(--line);
    padding: 24px;
    border-radius: 10px;
    margin-bottom: 24px;
    align-items: center;
    justify-content: space-between
}

.summary-strip h3 {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 500
}

.summary-strip p {
    font-size: 12px;
    color: #94a08c;
    margin: 0
}

.summary-strip strong {
    font-size: 28px;
    color: var(--green)
}

.summary-strip strong small {
    font-size: 12px;
    color: #93a08b;
    margin-left: 5px;
    font-weight: 400
}

.settings-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px
}

.empty {
    padding: 55px 25px;
    text-align: center;
    color: #a0aa96;
    line-height: 2;
    font-size: 12px
}

.empty svg {
    display: block;
    width: 40px;
    height: 40px;
    margin: 0 auto 15px
}

.toggle-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line)
}

.toggle-row h3 {
    font-size: 12px;
    font-weight: 500;
    margin: 0 0 6px
}

.toggle-row p {
    font-size: 10px;
    color: #97a18e;
    margin: 0
}

.toggle-row .badge {
    margin-left: auto
}

.chart-bars {
    display: flex;
    align-items: end;
    gap: 18px;
    height: 180px;
    padding: 20px 30px 0
}

.chart-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: center;
    height: 100%;
    gap: 8px
}

.chart-col i {
    display: block;
    background: #98b38d;
    width: 65%;
    border-radius: 4px 4px 0 0;
    min-height: 2px
}

.chart-col span {
    font-size: 10px;
    color: #9aa28f
}

.chart-col b {
    font-size: 10px;
    color: #7b8e6f;
    font-weight: 400
}

.split-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 16px 24px 24px;
    gap: 20px
}

.metric-box {
    padding: 16px;
    border-radius: 7px;
    background: #f6f8f2
}

.metric-box b {
    display: block;
    font-size: 24px;
    margin-top: 13px
}

.metric-box span {
    font-size: 12px;
    color: #93a086
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: #1c332c66;
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 22px
}

.modal {
    width: 590px;
    max-width: 100%;
    max-height: 90vh;
    overflow: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 70px #15392c33
}

.modal.wide {
    width: 860px
}

.modal-header {
    position: sticky;
    top: 0;
    z-index: 2;
    background: white;
    border-bottom: 1px solid var(--line);
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center
}

.modal-header h2 {
    font-size: 16px;
    margin: 0;
    font-weight: 500
}

.modal-body {
    padding: 24px
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: end;
    gap: 10px
}

.receipt-dl {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 16px;
    font-size: 12px;
    line-height: 1.8
}

.receipt-dl dt {
    color: #99a58f
}

.receipt-dl dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: #65795a
}

.hash {
    font-family: monospace;
    background: #f2f6ed;
    padding: 14px;
    border-radius: 5px;
    font-size: 12px;
    word-break: break-all;
    line-height: 1.9;
    color: #7e906e;
    margin: 16px 0
}

.dropzone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    border: 1.5px dashed #b9cdb4;
    border-radius: 10px;
    background: #f8faf5;
    text-align: center;
    padding: 26px 16px;
    color: #71855f;
    font-size: 12px;
    line-height: 1.7;
    cursor: pointer;
    transition: border-color .18s, background .18s, color .18s
}

.dropzone:hover {
    border-color: #4d7c43;
    background: #f1f7ec;
    color: #4d7c43
}

.dropzone.dragover {
    border-color: #3f6b36;
    background: #eaf3e2;
    color: #3f6b36
}

.dropzone:has(input:disabled) {
    cursor: not-allowed;
    opacity: .55
}

.dropzone:has(input:disabled):hover {
    border-color: #b9cdb4;
    background: #f8faf5;
    color: #71855f
}

.dropzone>svg {
    width: 26px;
    height: 26px;
    stroke-width: 1.5;
    color: #5d8050
}

.dropzone strong {
    font-size: 13px;
    font-weight: 600
}

.dropzone small {
    color: #8fa383
}

.dropzone * {
    pointer-events: none
}

.dropzone input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none
}

.dz-file {
    margin-top: 4px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    color: #5d8050;
    background: #edf4e6;
    border-radius: 999px;
    padding: 3px 12px
}

.dropzone:not(.has-file) .dz-file {
    display: none
}

.check-line {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    line-height: 1.9;
    color: #859779;
    margin: 16px 0
}

.check-line input {
    accent-color: var(--green);
    margin-top: 4px
}

.ai-chat {
    max-height: 160px;
    overflow: auto;
    font-size: 12px;
    line-height: 1.8;
    color: #7f9074;
    margin-bottom: 12px
}

.ai-bubble {
    background: #f0f5e9;
    border-radius: 7px;
    padding: 10px 13px;
    margin: 7px 0
}

.progress-track {
    height: 6px;
    background: #e6eddf;
    border-radius: 9px;
    overflow: hidden
}

.progress-track i {
    display: block;
    background: #739568;
    height: 100%;
    transition: width .2s
}

#toast {
    position: fixed;
    bottom: 30px;
    left: calc(50% + 111px);
    transform: translateX(-50%) translateY(20px);
    background: #224c3f;
    color: #fff;
    padding: 12px 22px;
    font-size: 12px;
    box-shadow: 0 6px 30px #1a392d22;
    border-radius: 7px;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: .2s;
    max-width: 90vw;
    line-height: 1.8
}

#toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0)
}

.mobile-menu {
    display: none
}

.batch-preview {
    max-height: 300px;
    overflow: auto
}

.file-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #edf4e6;
    border-radius: 5px;
    padding: 12px;
    font-size: 12px;
    color: #7c9069;
    margin: 16px 0
}

.file-chip span {
    overflow-wrap: anywhere
}

.help-content {
    font-size: 12px;
    line-height: 2;
    color: #7b8e6e
}

.help-content h3 {
    font-size: 13px;
    color: #4e6c40;
    font-weight: 500;
    margin: 25px 0 8px
}

.subject-preview {
    background: #f5f8f0;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    color: #7b8f69;
    font-size: 12px;
    line-height: 2
}

.subject-preview strong {
    font-size: 16px;
    color: #587549
}

.small-note {
    font-size: 12px;
    color: #9aa58f;
    line-height: 1.8;
    margin: 0 0 12px
}

.loading {
    padding: 35px;
    text-align: center;
    color: #829a73;
    font-size: 12px
}

.upload-choice {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 24px
}

.upload-choice button {
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 12px;
    color: #98a58b
}

.upload-choice button.active {
    border-color: #8baa74;
    color: #658851;
    background: #f1f6eb
}

.invalid {
    color: #b37862
}

.report-list {
    padding: 5px 23px 22px
}

.report-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 18px 0;
    font-size: 12px;
    color: #8e9d80
}

.report-item .meter {
    flex: 1
}

.report-item strong {
    color: #617d50;
    font-size: 12px;
    font-weight: 500
}

.blank-hint {
    font-size: 12px;
    line-height: 1.9;
    color: #8da17b
}

#verify-output {
    margin-top: 16px
}

.integrity-result {
    padding: 12px;
    border-radius: 5px;
    background: #eef6e7;
    color: #718f58;
    font-size: 12px
}

.subtle {
    color: #9da793
}

.no-wrap {
    white-space: nowrap
}

@media(min-width:1500px) {
    .content {
        padding-top: 36px
    }

    .hero {
        min-height: 222px
    }

    .hero-art {
        margin-right: 65px
    }

    .hero h2 {
        font-size: 28px
    }

    .hero p {
        font-size: 12px
    }

    .quick-card {
        padding: 19px
    }

    .stat {
        padding: 24px
    }

    .grid-main {
        grid-template-columns: minmax(0, 1fr) 310px
    }
}

@media(max-width:1200px) {
    .sidebar {
        width: 196px;
        padding-inline: 12px
    }

    .main {
        margin-left: 196px;
        width: calc(100% - 196px)
    }

    .content {
        padding: 27px 25px
    }

    .topbar {
        padding: 0 25px
    }

    .grid-main {
        grid-template-columns: minmax(0, 1fr) 255px;
        gap: 17px
    }

    .quick-grid {
        gap: 8px;
        padding-inline: 15px
    }

    .quick-card {
        padding: 13px 9px
    }

    .quick-card p {
        font-size: 10px
    }

    #toast {
        left: calc(50% + 98px)
    }

    .hero-art {
        width: 220px;
        margin-right: 0
    }

    .paper-art {
        left: 42px
    }

    .float-badge.first {
        left: -4px
    }

    .template-grid {
        gap: 14px
    }

    .editor-grid {
        grid-template-columns: 290px minmax(0, 1fr);
        gap: 17px
    }

    .document {
        padding: 35px 27px
    }
}

@media(max-width:1000px) {
    .grid-main {
        grid-template-columns: 1fr
    }

    .right-stack {
        display: grid;
        grid-template-columns: 1fr 1fr
    }

    .hero-art {
        width: 235px
    }

    .stats-grid {
        gap: 10px
    }

    .stat {
        padding: 15px
    }

    .stat-value {
        font-size: 25px
    }

    .stat-foot {
        font-size: 10px
    }

    .package-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .template-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .editor-grid {
        grid-template-columns: 1fr
    }

    .form-panel .form-fields {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 20px
    }

    .document {
        max-width: 100%
    }

    .hero h2 {
        font-size: 23px
    }

    .hero p {
        max-width: 270px;
        line-height: 1.9
    }

    .date-tag {
        display: none
    }

    .settings-grid {
        grid-template-columns: 1fr
    }
}

@media(max-width:720px) {
    .sidebar {
        transform: translateX(-100%);
        transition: .2s;
        width: 220px;
        box-shadow: 5px 0 30px #233c3122
    }

    .sidebar.open {
        transform: translateX(0)
    }

    .main {
        margin-left: 0;
        width: 100%
    }

    .mobile-menu {
        display: grid
    }

    .topbar {
        height: 63px;
        padding: 0 18px;
        position: sticky;
        top: 0;
        z-index: 20
    }

    .breadcrumb {
        gap: 8px;
        font-size: 12px
    }

    .top-actions {
        gap: 8px
    }

    .user {
        padding-left: 10px
    }

    .user .username {
        display: none
    }

    .demo-pill {
        font-size: 10px
    }

    .content {
        padding: 25px 17px
    }

    .page-heading h1 {
        font-size: 22px
    }

    .page-heading p {
        font-size: 12px
    }

    .hero {
        padding: 24px 23px;
        min-height: 235px
    }

    .hero h2 {
        font-size: 22px;
        max-width: 210px
    }

    .hero p {
        max-width: 200px;
        font-size: 10px;
        margin-bottom: 18px
    }

    .hero-art {
        position: absolute;
        right: -70px;
        top: 46px;
        width: 230px;
        transform: scale(.8);
        opacity: .65;
        pointer-events: none
    }

    .hero .button-row {
        gap: 7px
    }

    .hero .btn {
        padding: 9px 12px;
        font-size: 12px
    }

    .hero-copy {
        max-width: 100%
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 11px;
        margin-top: 17px
    }

    .stat {
        padding: 16px
    }

    .stat-value {
        font-size: 27px
    }

    .stat-foot {
        font-size: 10px
    }

    .grid-main {
        gap: 17px
    }

    .quick-grid {
        gap: 8px;
        padding-inline: 13px
    }

    .quick-card {
        padding: 13px 10px
    }

    .quick-card h3 {
        font-size: 12px
    }

    .quick-card p {
        font-size: 10px;
        min-height: 30px
    }

    .quick-card .arrow {
        display: none
    }

    .right-stack {
        grid-template-columns: 1fr
    }

    .right-stack .workflow {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px
    }

    .workflow-step {
        padding-bottom: 0
    }

    .workflow-step:before {
        display: none
    }

    .right-stack .notice-card {
        display: none
    }

    .panel-head {
        padding: 19px 17px
    }

    .toolbar {
        padding-inline: 17px
    }

    .tabs {
        gap: 15px
    }

    .search {
        width: 100%
    }

    .search input {
        width: 100%;
        font-size: 12px
    }

    .footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        line-height: 1.7
    }

    .template-grid,
    .package-grid {
        grid-template-columns: 1fr
    }

    .summary-strip {
        align-items: flex-start;
        gap: 13px;
        padding: 17px;
        flex-wrap: wrap
    }

    .stepper {
        padding: 16px 13px;
        margin-bottom: 18px
    }

    .step-item {
        font-size: 10px;
        gap: 5px
    }

    .step-item i {
        width: 21px;
        height: 21px
    }

    .step-connector {
        width: 4%
    }

    .form-panel {
        padding: 20px
    }

    .form-panel .form-fields {
        grid-template-columns: 1fr
    }

    .document-panel {
        padding: 13px
    }

    .document {
        padding: 30px 24px;
        min-height: 550px
    }

    .document h2 {
        font-size: 22px
    }

    .document textarea,
    .document .doc-body {
        font-size: 13px
    }

    .settings-grid {
        gap: 16px
    }

    .modal-backdrop {
        padding: 12px
    }

    .modal-body {
        padding: 19px
    }

    .modal-header {
        padding: 17px 19px
    }

    .modal-header h2 {
        font-size: 15px
    }

    .receipt-dl {
        grid-template-columns: 75px 1fr;
        font-size: 12px;
        gap: 11px
    }

    .topbar .help-btn {
        display: none
    }

    #toast {
        left: 50%;
        width: max-content;
        max-width: 90vw
    }

    .field-row {
        gap: 10px
    }

    .wizard-bottom .btn {
        font-size: 12px;
        padding-inline: 12px
    }

    .page-heading .btn {
        font-size: 12px;
        padding: 9px 12px
    }

    .chart-bars {
        gap: 10px
    }

    .doc-toolbar {
        font-size: 10px
    }

    .signature-seal {
        right: 20px
    }
}

@media print {
    body {
        background: white
    }

    .sidebar,
    .topbar,
    .page-heading,
    .callout,
    .footer,
    .modal-header,
    .modal-footer,
    #toast {
        display: none !important
    }

    .main {
        margin: 0;
        width: 100%
    }

    .modal-backdrop {
        position: absolute;
        background: white;
        display: block;
        padding: 0
    }

    .modal {
        width: 100%;
        max-height: none;
        box-shadow: none
    }

    .modal-body {
        padding: 0
    }

    .document {
        border: 0;
        box-shadow: none;
        min-height: 0
    }

    .modal-backdrop~* {
        display: none
    }

    .content {
        display: none
    }
}

.grid-main>*,
.right-stack>*,
.settings-grid>*,
.editor-grid>* {
    min-width: 0
}

@media(max-width:1000px) {
    .grid-main {
        grid-template-columns: minmax(0, 1fr)
    }
}

@media(max-width:720px) {
    .breadcrumb>svg {
        display: none
    }

    .user>svg {
        display: none
    }

    .top-actions {
        gap: 6px
    }

    .workflow-step {
        gap: 8px
    }

    .workflow-step>div {
        min-width: 0
    }

    .quick-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr))
    }
}
.brand-mark img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 8px
}

.handwriting-pad {
    display: block;
    width: 100%;
    max-width: 480px;
    height: 180px;
    margin: 0 auto 16px;
    border: 2px dashed #9fc0e0;
    border-radius: 10px;
    background: #fff;
    touch-action: none;
    cursor: crosshair
}

.legal-seal {
    width: 170px;
    height: auto;
    max-width: 100%;
    flex-shrink: 0;
    stroke: none;
    stroke-width: 0
}

.company-seal {
    width: 180px
}

.personal-seal {
    width: 220px
}

.seal-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 260px
}

.signed-seal {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px
}

.signed-seal .legal-seal {
    width: 155px;
    height: auto
}

.signed-seal .personal-seal {
    width: 190px
}

.logo-preview {
    width: 65px;
    height: 65px;
    object-fit: contain;
    display: block;
    margin-bottom: 15px
}

.attachment-list {
    padding: 15px 0;
    font-size: 12px;
    color: #8a9881;
    word-break: break-all
}

.attachment-list p {
    line-height: 1.8
}

.auth-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr minmax(330px, 450px);
    align-items: center;
    gap: 8vw;
    max-width: 1200px;
    padding: 60px;
    margin: auto
}

.auth-story .brand {
    margin-bottom: 60px
}

.auth-story h1 {
    font: 36px/1.7 SimSun, serif;
    color: #2a5745
}

.auth-story p {
    color: #879780;
    line-height: 2.4
}

.auth-card {
    padding: 35px
}

.auth-card h2 {
    font-size: 23px
}

.auth-card .button-row input,
#intent-value,
#sign-password-code {
    padding: 11px;
    border: 1px solid #dce4d5;
    border-radius: 5px;
    min-width: 0;
    flex: 1
}

.puzzle-board {
    width: 300px;
    max-width: 100%;
    height: 120px;
    position: relative;
    background: repeating-linear-gradient(35deg, #dce6d4, #dce6d4 10px, #eaf0e3 10px, #eaf0e3 20px);
    border-radius: 7px;
    margin: 20px 0
}

.puzzle-target,
.puzzle-piece {
    position: absolute;
    top: 30px;
    width: 36px;
    height: 40px;
    border-radius: 6px
}

.puzzle-target {
    background: #78916b55;
    border: 2px dashed #6b8f57
}

.puzzle-piece {
    left: 0;
    background: #2c6b9b;
    box-shadow: 2px 2px 5px #42633233
}

.puzzle-board>span {
    position: absolute;
    bottom: 10px;
    right: 12px;
    font-size: 10px;
    color: #758967
}

#puzzle-slider {
    width: 300px;
    max-width: 100%;
    accent-color: #2c6b9b;
    touch-action: none
}

.task-row {
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8db
}

.task-row h3 {
    font-size: 15px;
    font-weight: 500
}

.task-row details {
    margin: 20px 0;
    color: #819575;
    font-size: 12px
}

.task-row .document {
    min-height: 0
}

.task-row .button-row {
    margin-top: 15px
}

.auth-story .callout {
    margin-top: 30px
}

svg.legal-seal text {
    stroke: none
}

@media(max-width:720px) {
    .auth-layout {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 25px 17px
    }

    .auth-story .brand {
        margin-bottom: 15px
    }

    .auth-story h1 {
        font-size: 26px;
        margin-bottom: 10px
    }

    .auth-story>p {
        display: none
    }

    .auth-story .callout {
        font-size: 10px;
        margin: 15px 0 0
    }

    .auth-card {
        padding: 24px
    }

    .personal-seal {
        width: 210px
    }

    .top-actions .text-link {
        font-size: 10px
    }

    .top-actions .demo-pill {
        max-width: 105px;
        overflow: hidden;
        white-space: nowrap
    }

    .puzzle-board {
        width: 296px
    }

    .signed-seal .personal-seal {
        width: 175px
    }
}

.auth-story .brand {
    max-width: 210px
}

.brand-mark {
    flex-shrink: 0
}

.verified-v {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    min-width: 16px;
    height: 16px;
    padding: 0 3px;
    margin-left: 3px;
    border-radius: 50%;
    background: #248ab9;
    color: #fff !important;
    font: bold 10px/1 Arial, sans-serif;
    letter-spacing: 0;
    box-shadow: 0 0 0 2px #e9f5fc
}

.username .verified-v {
    width: 13px;
    min-width: 13px;
    height: 13px;
    font-size: 9px;
    margin-left: 2px
}

.subject-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px;
    margin: 8px 0;
    border: 1px solid #e3e9dc;
    border-radius: 7px;
    text-align: left;
    background: #fff;
    color: #506b49
}

.subject-option.selected {
    background: #edf5e8;
    border-color: #83a879
}

.subject-option strong {
    font-size: 13px;
    font-weight: 500
}

.subject-option small {
    display: block;
    font-size: 12px;
    color: #99a68f;
    margin-top: 8px
}

.subject-switch-trigger {
    max-width: 290px
}

.subject-switch-trigger .username {
    max-width: 205px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.subject-switch-trigger .avatar {
    flex-shrink: 0
}

@media(max-width:720px) {
    .subject-switch-trigger .username {
        display: block !important;
        max-width: 90px;
        font-size: 10px
    }

    .top-actions .demo-pill {
        display: none
    }

    .subject-option strong {
        font-size: 12px
    }

    .subject-switch-trigger {
        gap: 5px;
        padding-left: 5px !important
    }
}

.sidebar .brand,
.auth-story .brand {
    padding-bottom: 0;
    min-height: 60px
}

.sidebar .brand>span:last-child,
.auth-story .brand>span:last-child {
    display: flex;
    flex-direction: column;
    width: max-content
}

.sidebar .brand small,
.auth-story .brand small {
    width: 100%;
    font-size: 10px;
    letter-spacing: 0;
    text-align: justify;
    text-align-last: justify;
    white-space: normal;
    line-height: 1.8;
    margin-top: 3px
}

.document-panel .document,
.task-row .document {
    width: 100%;
    max-width: 210mm;
    min-height: 600px;
    overflow-wrap: anywhere;
    padding: clamp(24px, 12.095238%, 25.4mm)
}

.document textarea {
    font-size: 12pt;
    line-height: 2;
    min-height: 360px
}

.document .doc-body {
    font-size: 12pt;
    line-height: 2
}

.document .doc-sign,
.document .signed-seal {
    break-inside: avoid
}

@page {
    size: A4;
    margin: 25.4mm
}

@media print {
    .placed-seal[data-draggable] {
        border: 0;
        outline: 0
    }

    .document-panel .document,
    .task-row .document {
        width: auto;
        max-width: none;
        min-height: 0;
        aspect-ratio: auto;
        padding: 0;
        border: 0;
        box-shadow: none
    }

    .document .doc-body {
        orphans: 3;
        widows: 3
    }
}

.document .doc-sign {
    position: relative;
    text-align: right;
    margin-top: 14mm;
    line-height: 2;
    padding-bottom: 10mm;
    break-inside: avoid
}

.issuer-anchor {
    position: relative;
    display: inline-block;
    min-width: 40mm;
    text-align: center
}

.issuer-name {
    position: relative;
    z-index: 1
}

.placed-seal {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 40mm;
    height: 40mm;
    transform: translate(-50%, -50%) translate(var(--seal-x, 0mm), var(--seal-y, 0mm));
    z-index: 2;
    pointer-events: none;
    display: block
}

.placed-seal .legal-seal {
    width: 100%;
    height: 100%;
    max-width: none;
    display: block
}

.placed-seal[data-draggable] {
    cursor: grab;
    touch-action: none;
    pointer-events: auto;
    border: 1px dashed transparent
}

.placed-seal[data-draggable]:hover,
.placed-seal[data-draggable]:focus {
    border-color: #849a7c;
    outline: 2px solid #849a7c33
}

.placed-seal[data-draggable]:active {
    cursor: grabbing
}

.settings-grid>section {
    min-width: 0
}

.settings-grid input,
.modal-body input {
    max-width: 100%
}

.sidebar .nav {
    flex-shrink: 0
}

.sidebar {
    overflow-y: auto
}

@media print {
    .placed-seal[data-draggable] {
        border: 0;
        outline: 0
    }
}

.document-panel .document,
.task-row .document {
    aspect-ratio: auto;
    height: auto;
    min-height: 600px;
    overflow-wrap: anywhere
}

.document-panel .doc-body {
    height: auto
}

@media(max-width:720px) {

    .document-panel .document,
    .task-row .document {
        min-height: 0
    }
}