:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'PingFang SC',
    'Microsoft YaHei',
    sans-serif;
  color: #202c29;
  background: #f6f8fa;
  font-synthesis: none;
  font-size: 16px;
  --green: #176b50;
  --green-dark: #10503c;
  --muted: #7b8581;
  --line: #e7ece9;
  --surface: #fff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
.icon {
  flex-shrink: 0;
  vertical-align: middle;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #83bea9;
  outline-offset: 3px;
}
.initial-load {
  padding: 15vh;
  text-align: center;
  color: var(--muted);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 2.4rem;
  letter-spacing: -0.075rem;
  line-height: 1.35;
  font-weight: 650;
}
h2 {
  font-size: 1.2rem;
  font-weight: 620;
}
h3 {
  font-size: 1rem;
  font-weight: 600;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  color: #789087;
  margin-bottom: 12px;
}
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 242px;
  padding: 32px 22px 16px;
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  z-index: 10;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.12rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  padding: 2px 7px;
}
.brand-symbol {
  width: 40px;
  height: 44px;
  background: var(--green);
  color: #fff;
  border-radius: 12px;
  display: grid;
  place-items: center;
}
.brand-symbol .icon {
  width: 25px;
  height: 25px;
}
.brand small {
  display: block;
  font-size: 0.59rem;
  letter-spacing: 0.17em;
  margin-top: 5px;
  color: #7e8d85;
  font-weight: 500;
}
.workspace-label {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: #929d97;
  margin: 52px 12px 16px;
}
nav {
  display: grid;
  gap: 7px;
}
.nav-item {
  border: 0;
  background: transparent;
  border-radius: 9px;
  min-height: 47px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  font-size: 0.9rem;
  color: #737d78;
  text-align: left;
  transition:
    background 0.15s,
    color 0.15s;
}
.nav-item:hover {
  background: #f4f7f5;
}
.nav-item.active {
  background: #eaf4ef;
  color: var(--green);
  font-weight: 600;
}
.nav-item.active .icon {
  stroke-width: 2;
}
.tiny-tag {
  margin-left: auto;
  font-size: 0.65rem;
  font-weight: 500;
  color: #90a099;
  border: 1px solid #dfe8e2;
  border-radius: 4px;
  padding: 1px 4px;
}
.sidebar-bottom {
  margin-top: auto;
}
.local-note {
  margin: 25px 10px;
  display: flex;
  gap: 10px;
  color: #8b9690;
  font-size: 0.75rem;
  line-height: 1.6;
}
.local-note .icon {
  width: 17px;
  height: 17px;
  margin-top: 2px;
}
.local-note small {
  display: block;
  font-size: 0.68rem;
  color: #a0aaa4;
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 20px;
}
.avatar {
  width: 35px;
  height: 35px;
  background: #eef2ef;
  border: 1px solid #e4eae6;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  color: #5a7566;
  flex-shrink: 0;
}
.profile > div {
  min-width: 0;
  flex: 1;
}
.profile strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 550;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile small {
  display: block;
  font-size: 0.68rem;
  color: #8a958f;
  margin-top: 4px;
}
.icon-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 6px;
  width: 32px;
  height: 32px;
  color: #89938e;
}
.icon-button:hover {
  background: #edf3ef;
  color: #234d3b;
}
.main-shell {
  margin-left: 242px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 77px;
  padding: 0 40px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffffb3;
}
.breadcrumb {
  font-size: 0.8rem;
  color: #7f8a84;
}
.breadcrumb span {
  padding: 0 15px;
  color: #c3ccc7;
}
.topbar-end {
  display: flex;
  gap: 22px;
  align-items: center;
  font-size: 0.75rem;
}
.top-date {
  color: #949e98;
  padding-left: 20px;
  border-left: 1px solid var(--line);
}
.connected {
  color: #6f8578;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 7px;
}
.connected i {
  display: block;
  width: 6px;
  height: 6px;
  background: #45a97a;
  border-radius: 50%;
}
main {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 46px 48px 50px;
  flex: 1;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 35px;
  gap: 22px;
}
.page-heading p,
.editor-heading p {
  color: #7b8880;
  font-size: 0.9rem;
  line-height: 1.9;
  margin-top: 14px;
}
.heading-mark {
  border: 1px solid #e3eae5;
  background: #ffffffa6;
  width: 78px;
  height: 78px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  color: #94afa0;
  margin: 0 28px;
  transform: rotate(8deg);
}
.heading-mark .icon {
  width: 35px;
  height: 35px;
}
.mobile-break {
  display: none;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid #dce5df;
  border-radius: 8px;
  padding: 9px 16px;
  background: #fff;
  font-size: 0.84rem;
  font-weight: 550;
  white-space: nowrap;
  transition:
    background 0.15s,
    box-shadow 0.15s;
}
.button:hover {
  background: #f1f6f3;
  box-shadow: 0 2px 6px #183f2810;
}
.button.primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  box-shadow: 0 3px 8px #1b62451a;
}
.button.primary:hover {
  background: var(--green-dark);
}
.button.large {
  min-height: 46px;
  padding: 12px 24px;
  font-size: 0.9rem;
}
.button.small {
  min-height: 34px;
  font-size: 0.78rem;
  padding: 7px 12px;
}
.button.ghost {
  border-color: transparent;
  background: #f4f7f5;
  color: #6e7d73;
}
.button.wide {
  width: 100%;
}
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  padding: 5px 0;
  background: transparent;
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 550;
  white-space: nowrap;
}
.text-button:hover {
  color: #0d3e2b;
}
.text-button .icon {
  width: 16px;
  height: 16px;
}
.welcome-grid {
  display: grid;
  grid-template-columns: minmax(290px, 0.9fr) minmax(400px, 1.65fr);
  gap: 24px;
}
.connect-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  text-align: center;
  padding: 28px 36px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 6px 15px #263b2e03;
}
.section-kicker {
  align-self: flex-start;
  color: #99a49d;
  font-size: 0.74rem;
}
.wechat-mark {
  background: #e9f5ee;
  border-radius: 18px;
  display: grid;
  place-items: center;
  width: 65px;
  height: 65px;
  color: var(--green);
  margin: 27px 0 22px;
}
.wechat-mark .icon {
  width: 36px;
  height: 36px;
}
.connect-card h2 {
  font-size: 1.2rem;
}
.connect-card p {
  font-size: 0.8rem;
  color: #8a948e;
  line-height: 1.9;
  margin: 13px -5px 27px;
}
.connect-card .primary {
  width: 100%;
}
.connect-divider {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 13px;
  font-size: 0.7rem;
  color: #a3aca6;
  margin: 25px 0 17px;
}
.connect-divider:before,
.connect-divider:after {
  content: '';
  height: 1px;
  background: var(--line);
  flex: 1;
}
.connection-footnote {
  font-size: 0.67rem;
  color: #a6afa9;
  margin-top: 25px;
}
.welcome-tools {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.feature-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  padding: 24px 25px;
  position: relative;
}
.green-feature {
  display: flex;
  gap: 20px;
  background: #eaf2ed;
  min-height: 230px;
  overflow: hidden;
  border-color: #dce8e0;
  align-items: flex-start;
  padding: 29px;
}
.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f2f6f3;
  color: #759581;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}
.green-feature > .feature-icon {
  background: #ffffff9c;
  color: #70907e;
  width: 38px;
  height: 38px;
}
.green-feature h2 {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.green-feature p {
  font-size: 0.8rem;
  color: #7c9284;
  line-height: 1.9;
  margin: 12px 0 16px;
}
.green-feature .eyebrow {
  font-size: 0.59rem;
  margin-bottom: 10px;
  color: #92a697;
}
.green-feature .text-button {
  border-bottom: 1px solid #bdcec1;
  padding-bottom: 5px;
}
.mini-photo {
  position: absolute;
  width: 122px;
  height: 148px;
  right: -21px;
  bottom: -13px;
  background: #fff;
  border: 6px solid white;
  border-bottom-width: 20px;
  transform: rotate(-9deg);
  box-shadow: 0 8px 24px #335d3b19;
  border-radius: 5px;
}
.mini-photo-art {
  width: 100%;
  height: 100%;
  background: linear-gradient(150deg, #bacfbf, #e1eee4 50%, #a4beae 51%, #718e79);
}
.mini-photo-art:before {
  content: '';
  position: absolute;
  top: 24px;
  right: 24px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #eef4ec;
}
.mini-photo span {
  position: absolute;
  bottom: 10px;
  left: 5px;
  font-size: 0.46rem;
  color: #fff;
  white-space: nowrap;
}
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  flex: 1;
}
.feature-row .feature-icon {
  margin-bottom: 20px;
}
.feature-row h3 {
  font-size: 0.93rem;
}
.feature-row p {
  font-size: 0.78rem;
  line-height: 1.85;
  color: #909b94;
  margin-top: 10px;
}
.workflow-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  color: #9da9a0;
  font-size: 0.72rem;
  padding: 12px 0;
}
.workflow-strip span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.workflow-strip .icon {
  width: 15px;
  height: 15px;
}
.workflow-strip i {
  width: 25px;
  height: 1px;
  background: #d9e3dc;
}
.app-footer {
  display: flex;
  justify-content: space-between;
  padding: 22px 45px;
  font-size: 0.66rem;
  color: #a3ada7;
  border-top: 1px solid var(--line);
  letter-spacing: 0.02em;
}
.app-footer > span:last-child {
  font-size: 0.57rem;
  letter-spacing: 0.16em;
}
.compact {
  padding-top: 0;
  padding-bottom: 30px;
}
.compact h1 {
  font-size: 2rem;
}
.title-dot {
  color: #6da78a;
  padding-left: 3px;
}
.heading-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}
.notice {
  border-radius: 9px;
  padding: 13px 17px;
  font-size: 0.8rem;
  line-height: 1.7;
  margin-bottom: 22px;
  background: #edf4ef;
  color: #65826f;
  border: 1px solid #dfe9e2;
}
.demo-notice {
  background: #f0f3f8;
  border-color: #e0e7ef;
  color: #6b7b91;
}
.error-notice {
  background: #fff3ef;
  border-color: #f0dace;
  color: #a15e41;
}
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 5px;
  background: #eaf4ee;
  color: #548167;
  font-size: 0.67rem;
  padding: 4px 8px;
  white-space: nowrap;
  line-height: 1.3;
  font-weight: 500;
}
.badge.closed {
  background: #f2f1ed;
  color: #9e9684;
}
.badge.demo-badge {
  background: #eaf0f7;
  color: #70829a;
}
.badge.subtle {
  background: #f4f7f5;
  color: #8a9e90;
}
.stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.7fr;
  gap: 0;
  margin: 0 0 35px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 25px 10px;
}
.stats-row > div {
  padding: 0 28px;
  border-right: 1px solid var(--line);
}
.stats-row span {
  font-size: 0.78rem;
  color: #939f96;
}
.stats-row strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 550;
  line-height: 1.3;
  color: #324f3f;
  margin-top: 8px;
  letter-spacing: -0.06em;
}
.stats-row .stats-description {
  display: flex;
  align-items: center;
  gap: 15px;
  border: 0;
  justify-content: center;
}
.stats-description > .icon {
  width: 31px;
  height: 31px;
  color: #b0c1b5;
}
.stats-description small {
  display: block;
  font-size: 0.7rem;
  color: #a4afa7;
  margin-top: 7px;
}
.stats-description > span {
  font-size: 0.8rem;
  color: #7b8e7f;
}
.task-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
  gap: 18px;
}
.tabs {
  display: flex;
  gap: 24px;
  min-height: 50px;
}
.tab {
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: #97a198;
  font-size: 0.85rem;
  white-space: nowrap;
  padding: 10px 0 17px;
}
.tab.active {
  color: var(--green);
  border-bottom-color: var(--green);
  font-weight: 600;
}
.task-controls {
  display: flex;
  gap: 10px;
  padding-bottom: 10px;
}
input,
select,
textarea {
  border: 1px solid #dfe6e1;
  border-radius: 7px;
  background: #fff;
  color: #34463a;
  max-width: 100%;
  min-height: 40px;
  padding: 10px 12px;
  font-size: 0.85rem;
  transition: border-color 0.15s;
}
input::placeholder,
textarea::placeholder {
  color: #b0b9b2;
}
input:hover,
select:hover,
textarea:hover {
  border-color: #b8cbbd;
}
input:focus,
textarea:focus,
select:focus {
  border-color: #6da484;
}
input[type='checkbox'],
input[type='radio'] {
  accent-color: var(--green);
  width: 16px;
  height: 16px;
  min-height: 0;
  margin: 0;
  flex-shrink: 0;
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238b9e90' stroke-width='1.5'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 33px;
}
.search-input {
  display: flex;
  align-items: center;
  background: white;
  border: 1px solid #e0e6e2;
  border-radius: 7px;
  padding-left: 11px;
  width: 200px;
  color: #9ca99f;
}
.search-input input {
  border: 0;
  background: transparent;
  width: 100%;
  min-height: 35px;
  font-size: 0.75rem;
  padding: 8px;
}
.search-input .icon {
  width: 17px;
  height: 17px;
}
.task-controls > select {
  min-height: 36px;
  font-size: 0.75rem;
}
.task-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 21px;
}
.task-card {
  border: 1px solid #e2e9e4;
  border-radius: 12px;
  background: white;
  overflow: hidden;
  padding: 23px;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.task-card:hover {
  box-shadow: 0 7px 18px #203b2c07;
  transform: translateY(-2px);
}
.task-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 27px;
}
.task-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #eaf4ec;
  color: #689373;
  display: grid;
  place-items: center;
}
.task-icon.blue {
  background: #ecf1f8;
  color: #7c9db9;
}
.task-icon.amber {
  background: #f5f1e9;
  color: #b09b70;
}
.task-type {
  font-size: 0.68rem;
  color: #a0ada3;
  margin-bottom: 9px;
}
.task-card h2 {
  font-size: 1.03rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.task-card > p {
  font-size: 0.74rem;
  color: #a2aaa4;
  margin-top: 10px;
}
.task-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #edf0ed;
  margin-top: 28px;
  padding-top: 16px;
  gap: 7px;
}
.task-card-bottom > span {
  font-size: 0.65rem;
  color: #a1aaa3;
  max-width: 55%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.task-card-bottom > span .icon {
  width: 12px;
  height: 12px;
  margin-right: 4px;
}
.task-card-bottom .text-button {
  font-size: 0.72rem;
}
.task-card-bottom .text-button .icon {
  width: 12px;
  height: 12px;
}
.add-task-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 230px;
  background: transparent;
  border: 1px dashed #d7e2da;
  border-radius: 12px;
  color: #89a18f;
  gap: 15px;
}
.add-task-card > .icon {
  width: 27px;
  height: 27px;
}
.add-task-card strong {
  font-size: 0.85rem;
  font-weight: 500;
}
.add-task-card span {
  font-size: 0.72rem;
  color: #a9b5ac;
}
.add-task-card:hover {
  background: #eff5f0;
}
.load-more {
  text-align: center;
  margin-top: 25px;
}
.empty-state {
  padding: 70px 25px;
  text-align: center;
  color: #98a79a;
}
.empty-state > .icon {
  width: 40px;
  height: 40px;
  stroke-width: 1;
  margin-bottom: 22px;
}
.empty-state h2,
.empty-state h3 {
  font-weight: 500;
  color: #728878;
}
.empty-state p {
  font-size: 0.85rem;
  margin: 12px 0 23px;
  line-height: 1.9;
}
.editor-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding-bottom: 28px;
}
.editor-breadcrumb {
  margin-bottom: 12px;
}
.editor-breadcrumb .text-button {
  font-size: 0.75rem;
  color: #819c8a;
}
.editor-heading h1 {
  font-size: 1.8rem;
}
.editor-heading p {
  font-size: 0.8rem;
  margin-top: 9px;
}
.thread-identifier {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #81958a;
}
.thread-identifier code {
  min-width: 0;
  padding: 3px 8px;
  border: 1px solid #e1e9e3;
  border-radius: 5px;
  background: #eef4ef;
  color: #4d705c;
  font-size: inherit;
  overflow-wrap: anywhere;
  user-select: all;
}
.draft-state {
  font-size: 0.7rem;
  color: #9cab9f;
  white-space: nowrap;
}
.editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 325px;
  gap: 25px;
  align-items: start;
}
.editor-form {
  min-width: 0;
}
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 26px 30px;
}
.card-heading {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 27px;
}
.card-heading h2 {
  font-size: 1.04rem;
}
.card-heading p {
  font-size: 0.75rem;
  color: #9aa69c;
  margin-top: 7px;
}
.form-field {
  margin: 0;
  padding: 24px 0;
  border: 0;
  border-top: 1px solid #eef1ee;
  min-width: 0;
}
.form-field legend {
  float: left;
  padding: 0;
  margin: 0 0 15px;
  width: 100%;
  font-size: 0.88rem;
  font-weight: 550;
  line-height: 1.5;
  display: flex;
  gap: 5px;
  align-items: center;
}
.form-field legend + * {
  clear: both;
}
.field-type {
  margin-left: auto;
  font-size: 0.65rem;
  color: #abb6ac;
  font-weight: 400;
}
.required {
  color: #b7846c;
  margin-left: 4px;
}
.field-tip {
  font-size: 0.74rem;
  color: #9da99f;
  line-height: 1.75;
  margin: 0 0 13px;
}
.form-field input:not([type='checkbox']):not([type='radio']):not([type='file']),
.form-field select,
.form-field textarea {
  width: 100%;
}
.form-field:disabled {
  opacity: 0.6;
}
.form-description {
  color: #819583;
  font-size: 0.84rem;
  line-height: 1.9;
  padding: 20px 0;
  white-space: pre-wrap;
}
.form-description img {
  max-width: 100%;
  display: block;
  margin-top: 12px;
}
.form-divider {
  border: 0;
  border-top: 1px dashed #ccdcd0;
  margin: 22px 0;
}
.identity-fields {
  display: grid;
  gap: 16px;
  padding: 0 0 23px;
}
.input-label {
  font-size: 0.76rem;
  color: #7e9182;
  display: flex;
  flex-direction: column;
  gap: 9px;
  line-height: 1.4;
  min-width: 0;
}
.input-label input {
  width: 100%;
  font-size: 0.83rem;
}
.choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.choice {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #e2e9e3;
  padding: 11px 14px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 0.8rem;
  color: #87968a;
  min-width: 95px;
}
.choice:has(input:checked) {
  background: #f1f7f2;
  color: #3e7450;
  border-color: #97bba2;
}
.choice img {
  max-width: 75px;
  max-height: 75px;
  object-fit: contain;
}
.watermark-inline {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #e2ece4;
  background: #f4f8f4;
  border-radius: 7px;
  padding: 9px 12px;
  margin-bottom: 13px;
  align-items: center;
}
.watermark-inline > span {
  font-size: 0.72rem;
  color: #82a08a;
  display: flex;
  align-items: center;
  gap: 6px;
}
.watermark-inline .icon {
  width: 15px;
  height: 15px;
}
.watermark-inline .text-button {
  font-size: 0.7rem;
}
.upload-area {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px dashed #cfdfd2;
  border-radius: 8px;
  min-height: 105px;
  background: #fafcfb;
  padding: 18px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.upload-area > .icon {
  width: 26px;
  height: 26px;
  color: #95ae9b;
}
.upload-area span {
  display: block;
}
.upload-area strong {
  font-size: 0.78rem;
  font-weight: 500;
  color: #829c8a;
  display: block;
  line-height: 1.7;
}
.upload-area small {
  font-size: 0.67rem;
  color: #b0bdb3;
  display: block;
  margin-top: 6px;
  line-height: 1.5;
}
.upload-area:hover,
.upload-area.dragover {
  background: #edf6ef;
  border-color: #7ca98b;
}
.upload-area input[type='file'] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  font-size: 0;
  padding: 0;
}
.upload-area:focus-within {
  outline: 3px solid #83bea9;
  outline-offset: 3px;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.media-grid:not(:empty) {
  margin-bottom: 15px;
}
.media-item {
  position: relative;
  min-width: 0;
}
.media-item > small {
  display: block;
  font-size: 0.65rem;
  color: #8f9d93;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  margin-top: 7px;
  line-height: 1.6;
}
.thumbnail-button {
  width: 100%;
  height: 110px;
  border: 1px solid #e7eee7;
  border-radius: 7px;
  padding: 0;
  overflow: hidden;
  background: #f3f6f3;
}
.thumbnail-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-item video {
  width: 100%;
  height: 110px;
  object-fit: cover;
  background: #1a2d23;
  border-radius: 7px;
}
.media-item audio {
  width: 100%;
  height: 48px;
}
.media-item:has(audio) {
  grid-column: span 3;
}
.remove-file {
  position: absolute;
  right: 4px;
  top: 4px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: #fffdfd;
  color: #7e9182;
  box-shadow: 0 1px 6px #0002;
}
.remove-file .icon {
  width: 13px;
  height: 13px;
}
.file-tile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 110px;
  background: #f5f8f5;
  border: 1px solid #e3eae3;
  border-radius: 8px;
  padding: 10px;
  gap: 10px;
}
.file-tile span {
  font-size: 0.7rem;
  word-break: break-all;
  max-height: 2.8em;
  overflow: hidden;
  color: #87a18e;
}
.location-box {
  border: 1px solid #e5ece6;
  border-radius: 9px;
  padding: 17px;
  background: #fcfdfb;
}
.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.location-box .two-columns {
  margin-top: 15px;
}
.location-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 13px;
  flex-wrap: wrap;
}
.location-actions .text-button {
  font-size: 0.7rem;
}
.location-actions small {
  font-size: 0.62rem;
  color: #b0baaf;
}
.editor-submit {
  padding: 23px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.editor-submit > span {
  font-size: 0.69rem;
  color: #9cab9e;
  display: flex;
  align-items: center;
  gap: 6px;
}
.editor-submit > span .icon {
  width: 15px;
  height: 15px;
}
.editor-submit .button {
  font-size: 0.85rem;
  min-height: 43px;
  padding: 11px 19px;
}
.preview-sidebar {
  position: sticky;
  top: 24px;
}
.preview-card,
.summary-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 22px;
}
.preview-card-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.preview-card-title h2 {
  font-size: 0.9rem;
}
.preview-card-title .badge {
  font-size: 0.6rem;
}
.photo-preview {
  aspect-ratio: 4/4.7;
  background: #f0f4f0;
  border: 1px solid #e6ede6;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.photo-preview > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #1c2922;
}
.preview-placeholder {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 10px;
  color: #b7c8ba;
}
.preview-placeholder .icon {
  width: 48px;
  height: 48px;
  stroke-width: 1;
  margin-bottom: 15px;
  color: #a8bdad;
}
.preview-placeholder strong {
  font-size: 0.79rem;
  font-weight: 500;
  color: #9db39f;
}
.preview-placeholder span {
  font-size: 0.67rem;
  color: #b3c1b2;
}
.preview-caption {
  font-size: 0.65rem;
  color: #acb6ad;
  line-height: 1.6;
  text-align: center;
  margin: 10px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wm-control-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 20px;
  margin-bottom: 9px;
}
.wm-control-heading h3 {
  font-size: 0.83rem;
}
.wm-control-heading + .field-tip {
  font-size: 0.65rem;
}
.switch {
  position: relative;
  display: block;
  width: 31px;
  height: 19px;
  cursor: pointer;
}
.switch input {
  opacity: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 1;
}
.switch span {
  display: block;
  width: 31px;
  height: 19px;
  border-radius: 10px;
  background: #ccd7ce;
  transition: background 0.15s;
}
.switch span:after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s;
}
.switch input:checked + span {
  background: #619f74;
}
.switch input:checked + span:after {
  transform: translateX(12px);
}
.switch:has(input:focus-visible) {
  outline: 3px solid #83bea9;
  outline-offset: 4px;
  border-radius: 10px;
}
.wm-controls {
  display: grid;
  gap: 14px;
}
.wm-controls .input-label {
  font-size: 0.69rem;
  color: #91a193;
  gap: 7px;
}
.wm-controls input:not([type='checkbox']) {
  font-size: 0.73rem;
  min-height: 36px;
  padding: 8px 10px;
}
.wm-controls.dimmed {
  opacity: 0.55;
}
.wm-checks {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
}
.wm-checks label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  color: #96a495;
}
.wm-checks input {
  width: 13px;
  height: 13px;
}
.wm-controls > .text-button {
  justify-content: flex-start;
  font-size: 0.69rem;
}
.summary-card {
  margin-top: 20px;
}
.summary-card h3 {
  font-size: 0.83rem;
  margin-bottom: 18px;
}
#form-summary {
  display: grid;
  gap: 15px;
}
#form-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.74rem;
}
#form-summary span {
  color: #a0ada1;
}
#form-summary strong {
  font-weight: 500;
  color: #6e8874;
  max-width: 65%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.preview-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 0.66rem;
  line-height: 1.8;
  color: #a5b2a7;
  margin: 18px 7px;
}
.preview-note .icon {
  width: 14px;
  height: 14px;
  margin-top: 3px;
}
.privacy-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.77rem;
  color: #829286;
  line-height: 1.8;
  padding-top: 15px;
}
.privacy-consent input {
  margin-top: 4px;
}
.advanced-field {
  font-size: 0.8rem;
  color: #8e9b91;
}
.advanced-field summary {
  cursor: pointer;
  margin-bottom: 15px;
}
.advanced-field textarea {
  font-family: monospace;
  font-size: 0.75rem;
}
.history-list {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
}
.history-item {
  display: flex;
  align-items: center;
  padding: 26px 28px;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}
.history-item:last-child {
  border: 0;
}
.history-icon {
  width: 40px;
  height: 40px;
  background: #eaf4ed;
  color: #80a78a;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.history-icon.warning {
  background: #faf3e6;
  color: #b59b64;
}
.history-item > div {
  flex: 1;
  min-width: 0;
}
.history-item h3 {
  font-size: 0.9rem;
  line-height: 1.7;
}
.history-item h3 .badge {
  margin-left: 8px;
}
.history-item p {
  font-size: 0.76rem;
  color: #8d9e90;
  margin-top: 6px;
  line-height: 1.6;
}
.history-item small {
  font-size: 0.66rem;
  color: #b0bbb0;
  margin-top: 10px;
  display: block;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: #16291d65;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(4px);
}
.modal {
  width: 580px;
  max-width: 100%;
  max-height: 90dvh;
  background: #fff;
  border: 1px solid #dfe9e0;
  border-radius: 16px;
  box-shadow: 0 25px 100px #071d1c35;
  display: flex;
  flex-direction: column;
  animation: modal-in 0.18s ease-out;
}
.modal-heading {
  padding: 23px 25px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #eff2ee;
  gap: 12px;
}
.modal-heading h2 {
  font-size: 1.03rem;
}
.modal-content {
  overflow: auto;
  padding: 25px;
}
.modal-content .input-label {
  margin-bottom: 15px;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 18px 25px;
  border-top: 1px solid #eef2ed;
}
.qr-panel {
  text-align: center;
  padding: 8px 0 17px;
}
.qr-frame {
  width: 215px;
  height: 215px;
  margin: 0 auto 23px;
  padding: 7px;
  border: 1px solid #dfe8df;
  border-radius: 10px;
}
.qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.qr-panel h3 {
  font-size: 1.05rem;
}
.qr-panel p {
  font-size: 0.8rem;
  line-height: 1.9;
  color: #a0aea1;
  margin: 13px 0 18px;
}
.qr-loading {
  text-align: center;
  padding: 65px 20px;
  color: #8da392;
  font-size: 0.9rem;
}
.prepare-progress {
  text-align: center;
  padding: 35px 10px;
}
.spinner {
  display: block;
  width: 32px;
  height: 32px;
  margin: 0 auto 28px;
  border: 2px solid #e6efe8;
  border-top-color: #619477;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.prepare-progress h3 {
  font-size: 0.88rem;
  color: #6c8b76;
  overflow-wrap: anywhere;
}
.prepare-progress p {
  font-size: 0.75rem;
  color: #a3b1a4;
  line-height: 1.8;
  margin-top: 13px;
}
.review-title {
  display: flex;
  gap: 13px;
  align-items: center;
  margin-bottom: 25px;
}
.review-title h3 {
  font-size: 1rem;
}
.review-title p {
  font-size: 0.75rem;
  color: #98a79b;
  margin-top: 8px;
}
.review-fields {
  display: grid;
  gap: 0;
}
.review-row {
  display: flex;
  gap: 18px;
  border-top: 1px solid #edf2ed;
  padding: 17px 0;
  align-items: flex-start;
}
.review-row > strong {
  flex: 0 0 100px;
  font-size: 0.78rem;
  color: #8ba08e;
  font-weight: 500;
  line-height: 1.7;
}
.review-row > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  font-size: 0.8rem;
  color: #5c7966;
  align-items: center;
}
.review-row code {
  font-size: 0.65rem;
  overflow-wrap: anywhere;
  width: 100%;
  color: #92a795;
}
.review-row a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100px;
  overflow: hidden;
  font-size: 0.66rem;
}
.review-row a img {
  width: 100px;
  height: 110px;
  object-fit: cover;
  border-radius: 5px;
}
.review-row a span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.payload-details {
  border: 1px solid #e5ece6;
  border-radius: 7px;
  padding: 12px;
  margin: 15px 0;
  font-size: 0.72rem;
  color: #8da591;
}
.payload-details summary {
  cursor: pointer;
}
.payload-details pre {
  font-size: 0.65rem;
  overflow: auto;
  max-height: 300px;
  white-space: pre-wrap;
  word-break: break-all;
  color: #7b9581;
  padding: 12px;
  background: #f5f8f5;
  margin-bottom: 0;
  border-radius: 5px;
}
.success-panel {
  text-align: center;
  padding: 25px 10px 35px;
}
.success-panel > span {
  display: grid;
  place-items: center;
  background: #edf7ee;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  color: #69a37b;
  margin: 0 auto 25px;
}
.success-panel > span .icon {
  width: 30px;
  height: 30px;
}
.success-panel h3 {
  color: #527d60;
  font-size: 1.2rem;
  font-weight: 550;
}
.success-panel p {
  font-size: 0.8rem;
  color: #a0afa2;
  line-height: 1.9;
  margin: 15px 0 0;
}
.record-list {
  display: grid;
  gap: 10px;
}
.record-item {
  border: 1px solid #e3ece4;
  padding: 16px;
  border-radius: 8px;
  background: #fafcfb;
  display: flex;
  justify-content: space-between;
  text-align: left;
  align-items: center;
  gap: 15px;
  width: 100%;
}
.record-item strong {
  font-size: 0.82rem;
  font-weight: 500;
}
.record-item small {
  font-size: 0.7rem;
  color: #97a99a;
  display: block;
  margin-top: 7px;
}
.record-item > span:last-child {
  font-size: 0.75rem;
  color: #699778;
}
.help-content {
  font-size: 0.83rem;
  color: #8d9e90;
  line-height: 1.9;
}
.help-content h3 {
  font-size: 0.9rem;
  color: #5e8169;
  margin: 20px 0 7px;
}
.help-content h3:first-child {
  margin-top: 0;
}
#signature-canvas {
  width: 100%;
  height: auto;
  touch-action: none;
  border: 1px dashed #b8ccbd;
  border-radius: 8px;
  background: #fafcfb;
}
#toasts {
  position: fixed;
  bottom: 30px;
  left: calc(50% + 100px);
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 40px);
  pointer-events: none;
}
.toast {
  padding: 14px 24px;
  border: 1px solid #dfebe1;
  border-radius: 10px;
  background: #fff;
  color: #6c8a75;
  font-size: 0.82rem;
  box-shadow: 0 5px 30px #18341a17;
  line-height: 1.6;
  animation: modal-in 0.15s ease-out;
}
.toast.error {
  color: #ac7054;
  border-color: #efded3;
}
.dimmed {
  opacity: 0.6;
}
@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (min-width: 1600px) {
  main {
    padding-top: 60px;
  }
  .page-heading {
    padding-bottom: 45px;
  }
  .welcome-grid {
    gap: 30px;
  }
  .connect-card {
    padding: 33px 45px;
  }
  .welcome-tools {
    gap: 25px;
  }
  .green-feature {
    min-height: 250px;
  }
  .feature-row .feature-card {
    padding: 28px 30px;
  }
  .task-card {
    padding: 27px;
  }
  .sidebar {
    width: 260px;
    padding: 35px 25px;
  }
  .main-shell {
    margin-left: 260px;
  }
}
@media (max-width: 1200px) {
  main {
    padding: 35px 30px;
  }
  .sidebar {
    width: 215px;
    padding: 27px 16px;
  }
  .main-shell {
    margin-left: 215px;
  }
  .topbar {
    padding: 0 30px;
  }
  .welcome-grid {
    grid-template-columns: 1fr 1.4fr;
    gap: 18px;
  }
  .connect-card {
    padding: 25px;
  }
  .green-feature {
    padding: 25px 20px;
    gap: 12px;
  }
  .green-feature > .feature-icon {
    display: none;
  }
  .green-feature h2 {
    font-size: 1.05rem;
  }
  .green-feature p {
    font-size: 0.75rem;
  }
  .mini-photo {
    width: 90px;
    height: 115px;
    right: -25px;
  }
  .feature-row {
    gap: 15px;
  }
  .feature-card {
    padding: 22px 19px;
  }
  .task-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .editor-grid {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 19px;
  }
  .form-card {
    padding: 23px;
  }
  .preview-card,
  .summary-card {
    padding: 18px;
  }
  .stats-row > div {
    padding: 0 20px;
  }
  .task-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .task-controls {
    width: 100%;
    justify-content: flex-end;
  }
  .tabs {
    width: 100%;
  }
  .editor-heading {
    flex-wrap: wrap;
  }
  .editor-heading .heading-actions {
    width: 100%;
    justify-content: space-between;
  }
}
@media (max-width: 950px) {
  .sidebar {
    width: 190px;
    padding: 25px 12px;
  }
  .brand {
    gap: 8px;
    font-size: 0.95rem;
  }
  .brand-symbol {
    width: 33px;
    height: 37px;
    border-radius: 10px;
  }
  .brand small {
    font-size: 0.5rem;
  }
  .main-shell {
    margin-left: 190px;
  }
  main {
    padding: 30px 23px;
  }
  .topbar {
    padding: 0 23px;
  }
  .top-date {
    display: none;
  }
  .page-heading h1 {
    font-size: 1.9rem;
  }
  .welcome-grid {
    grid-template-columns: 1fr;
  }
  .connect-card {
    padding: 25px 35px;
    display: grid;
    grid-template-columns: 70px 1fr;
    column-gap: 24px;
    text-align: left;
  }
  .section-kicker {
    display: none;
  }
  .wechat-mark {
    grid-column: 1;
    grid-row: 1/3;
    margin: 0;
  }
  .connect-card h2 {
    grid-column: 2;
  }
  .connect-card p {
    grid-column: 2;
    margin: 9px 0 20px;
  }
  .connect-card > .button {
    grid-column: 1/3;
  }
  .connect-divider {
    grid-column: 1/3;
    margin: 17px 0 12px;
  }
  .connection-footnote {
    grid-column: 1/3;
    text-align: center;
    margin-top: 16px;
  }
  .green-feature {
    min-height: 220px;
    padding: 27px;
  }
  .mini-photo {
    width: 120px;
    height: 145px;
    right: -5px;
  }
  .green-feature > .feature-icon {
    display: grid;
  }
  .feature-card {
    padding: 25px;
  }
  .heading-mark {
    margin-right: 0;
    width: 60px;
    height: 60px;
  }
  .stats-row {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .stats-description {
    display: none !important;
  }
  .stats-row > div:nth-child(3) {
    border: 0;
  }
  .stats-row > div {
    padding: 0 17px;
  }
  .editor-grid {
    grid-template-columns: 1fr;
  }
  .preview-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
  }
  .preview-card {
    grid-row: span 2;
  }
  .summary-card {
    margin-top: 0;
  }
  .preview-note {
    margin: 0;
  }
  .editor-form {
    display: contents;
  }
  .form-card {
    grid-column: 1;
  }
  .editor-submit {
    grid-column: 1;
    grid-row: 3;
  }
  .editor-submit .button {
    margin-left: auto;
  }
  .preview-sidebar {
    grid-row: 2;
    grid-column: 1;
  }
  .photo-preview {
    aspect-ratio: 4/3;
  }
  .wm-controls .two-columns {
    gap: 7px;
  }
  .app-footer {
    padding: 20px 23px;
  }
  .app-footer > span:last-child {
    display: none;
  }
  #toasts {
    left: calc(50% + 85px);
  }
}
@media (max-width: 680px) {
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    padding: 18px 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand {
    padding: 0;
    font-size: 1rem;
  }
  .brand-symbol {
    height: 37px;
    width: 35px;
  }
  .brand small {
    font-size: 0.5rem;
  }
  .workspace-label,
  .sidebar-bottom {
    display: none;
  }
  .sidebar nav {
    display: flex;
    gap: 20px;
    margin-top: 18px;
    overflow-x: auto;
  }
  .nav-item {
    border-radius: 0;
    min-height: 43px;
    width: auto;
    padding: 9px 0 13px;
    gap: 7px;
    background: transparent !important;
    white-space: nowrap;
    font-size: 0.8rem;
    border-bottom: 2px solid transparent;
  }
  .nav-item .icon {
    width: 17px;
    height: 17px;
  }
  .nav-item.active {
    border-bottom-color: var(--green);
  }
  .nav-item .tiny-tag {
    font-size: 0.55rem;
  }
  .main-shell {
    margin: 0;
  }
  .topbar {
    height: 52px;
    padding: 0 20px;
  }
  .breadcrumb {
    font-size: 0.7rem;
  }
  .breadcrumb span {
    padding: 0 8px;
  }
  .topbar-end {
    font-size: 0.66rem;
  }
  .connected {
    font-size: 0.66rem;
  }
  main {
    padding: 28px 20px 35px;
  }
  .page-heading {
    padding: 6px 0 27px;
    gap: 0;
    align-items: flex-start;
  }
  .page-heading h1 {
    font-size: 1.85rem;
    letter-spacing: -0.06em;
  }
  .page-heading p {
    font-size: 0.77rem;
    line-height: 1.9;
    max-width: 280px;
  }
  .heading-mark {
    width: 45px;
    height: 48px;
    border-radius: 13px;
    margin-top: 35px;
    flex-shrink: 0;
  }
  .heading-mark .icon {
    width: 22px;
    height: 22px;
  }
  .eyebrow {
    font-size: 0.6rem;
    letter-spacing: 0.13em;
  }
  .welcome-grid {
    gap: 17px;
  }
  .connect-card {
    padding: 25px;
    column-gap: 15px;
    grid-template-columns: 50px 1fr;
  }
  .wechat-mark {
    width: 46px;
    height: 48px;
    border-radius: 13px;
  }
  .wechat-mark .icon {
    width: 27px;
    height: 27px;
  }
  .connect-card h2 {
    font-size: 1.05rem;
  }
  .connect-card p {
    font-size: 0.73rem;
  }
  .green-feature {
    padding: 24px 20px;
    gap: 13px;
    min-height: 225px;
  }
  .green-feature h2 {
    font-size: 1.05rem;
    max-width: 200px;
    line-height: 1.6;
  }
  .green-feature p {
    font-size: 0.73rem;
  }
  .green-feature > .feature-icon {
    display: none;
  }
  .mini-photo {
    width: 90px;
    height: 125px;
    right: -17px;
  }
  .feature-row {
    gap: 13px;
  }
  .feature-row .feature-card {
    padding: 22px 18px;
  }
  .feature-row h3 {
    font-size: 0.82rem;
  }
  .feature-row p {
    font-size: 0.7rem;
  }
  .feature-row .feature-icon {
    margin-bottom: 16px;
  }
  .workflow-strip {
    gap: 10px;
    font-size: 0.62rem;
    padding: 8px 0;
  }
  .workflow-strip i {
    width: 15px;
  }
  .workflow-strip .icon {
    width: 12px;
    height: 12px;
  }
  .app-footer {
    padding: 18px 20px;
    font-size: 0.6rem;
  }
  .compact {
    flex-wrap: wrap;
    gap: 22px;
  }
  .compact h1 {
    font-size: 1.8rem;
  }
  .compact .heading-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .compact .heading-actions .button {
    font-size: 0.77rem;
    min-height: 36px;
    padding: 8px 12px;
  }
  .stats-row {
    padding: 20px 0;
    margin-bottom: 22px;
  }
  .stats-row > div {
    padding: 0 16px;
  }
  .stats-row span {
    font-size: 0.65rem;
  }
  .stats-row strong {
    font-size: 1.65rem;
    margin-top: 8px;
  }
  .task-toolbar {
    margin-bottom: 18px;
  }
  .tabs {
    gap: 24px;
  }
  .tab {
    font-size: 0.77rem;
    padding-bottom: 13px;
  }
  .task-controls {
    justify-content: space-between;
  }
  .search-input {
    width: auto;
    flex: 1;
  }
  .task-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .task-card {
    padding: 22px;
  }
  .task-card-top {
    margin-bottom: 17px;
  }
  .task-type {
    font-size: 0.68rem;
  }
  .task-card h2 {
    font-size: 1.1rem;
  }
  .task-card > p {
    font-size: 0.75rem;
  }
  .task-card-bottom {
    margin-top: 21px;
    padding-top: 15px;
  }
  .task-card-bottom > span {
    font-size: 0.68rem;
  }
  .task-card-bottom .text-button {
    font-size: 0.77rem;
  }
  .add-task-card {
    min-height: 155px;
  }
  .notice {
    font-size: 0.73rem;
    padding: 12px 14px;
  }
  .editor-heading {
    gap: 15px;
  }
  .editor-heading h1 {
    font-size: 1.6rem;
    word-break: break-word;
  }
  .editor-heading p {
    font-size: 0.72rem;
  }
  .editor-heading .button {
    font-size: 0.72rem;
    padding: 9px 12px;
    min-height: 36px;
  }
  .draft-state {
    font-size: 0.61rem;
  }
  .editor-grid {
    gap: 18px;
  }
  .form-card {
    padding: 23px 20px;
  }
  .form-field {
    padding: 21px 0;
  }
  .form-field legend {
    font-size: 0.85rem;
  }
  .field-type {
    font-size: 0.61rem;
  }
  .preview-sidebar {
    display: block;
  }
  .preview-card {
    padding: 20px;
  }
  .photo-preview {
    aspect-ratio: 4/3.6;
  }
  .wm-controls {
    gap: 16px;
  }
  .wm-controls .input-label {
    font-size: 0.75rem;
  }
  .wm-controls input:not([type='checkbox']) {
    font-size: 0.82rem;
    min-height: 40px;
  }
  .wm-checks label {
    font-size: 0.75rem;
  }
  .wm-checks input {
    width: 15px;
    height: 15px;
  }
  .wm-control-heading h3 {
    font-size: 0.9rem;
  }
  .summary-card {
    margin-top: 18px;
  }
  .preview-note {
    margin: 16px 4px 0;
  }
  .editor-submit {
    flex-wrap: wrap;
    gap: 13px;
    padding: 10px 0;
  }
  .editor-submit > span {
    font-size: 0.65rem;
  }
  .editor-submit .button {
    font-size: 0.8rem;
    min-height: 43px;
    padding: 11px 18px;
  }
  .location-box {
    padding: 14px;
  }
  .location-actions small {
    font-size: 0.6rem;
  }
  .upload-area {
    padding: 16px 11px;
    gap: 10px;
  }
  .upload-area strong {
    font-size: 0.73rem;
  }
  .upload-area small {
    font-size: 0.61rem;
  }
  .upload-area > .icon {
    width: 22px;
    height: 22px;
  }
  .media-grid {
    gap: 9px;
  }
  .thumbnail-button,
  .media-item video,
  .file-tile {
    height: 90px;
  }
  .media-item > small {
    font-size: 0.6rem;
  }
  .history-item {
    padding: 20px 17px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .history-icon {
    width: 34px;
    height: 34px;
  }
  .history-item h3 {
    font-size: 0.83rem;
  }
  .history-item p {
    font-size: 0.7rem;
  }
  .history-item > .badge {
    margin-left: 46px;
  }
  .modal-overlay {
    padding: 14px;
  }
  .modal {
    max-height: 92dvh;
    border-radius: 12px;
  }
  .modal-heading {
    padding: 18px 20px 14px;
  }
  .modal-content {
    padding: 20px;
  }
  .modal-footer {
    padding: 16px 20px;
    gap: 8px;
  }
  .modal-footer .button {
    font-size: 0.76rem;
    padding: 10px 12px;
  }
  .review-row {
    gap: 10px;
  }
  .review-row > strong {
    flex-basis: 80px;
    font-size: 0.73rem;
  }
  .review-row > div {
    font-size: 0.74rem;
  }
  .review-title h3 {
    font-size: 0.93rem;
  }
  .review-title p {
    font-size: 0.68rem;
  }
  .qr-frame {
    width: 205px;
    height: 205px;
  }
  #toasts {
    left: 50%;
    bottom: 23px;
    width: max-content;
    max-width: calc(100% - 28px);
  }
  .toast {
    font-size: 0.75rem;
    padding: 12px 18px;
  }
  .modal-content .input-label {
    font-size: 0.8rem;
  }
  input,
  textarea,
  select {
    font-size: 16px !important;
  }
  .task-controls input,
  .task-controls select {
    font-size: 0.75rem !important;
  }
  input[type='checkbox'],
  input[type='radio'] {
    font-size: 16px;
  }
  .task-controls .search-input input {
    font-size: 16px !important;
  }
  .media-item audio {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Keep working controls readable across desktop and mobile layouts. */
.input-label,
.wm-controls .input-label,
.form-field legend,
.nav-item,
.button,
.text-button,
.choice,
.tab {
  font-size: 0.875rem;
}
.field-tip,
.preview-note,
.draft-state,
.connection-footnote,
.task-card > p,
.task-card-bottom > span,
.wm-checks label {
  font-size: 0.8125rem;
}
.wm-controls input:not([type='checkbox']),
.task-controls > select {
  font-size: 0.875rem;
}

.editor-fields {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.automatic-intro {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 30px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #eef5f0;
}
.automatic-intro .icon {
  margin-right: 10px;
  color: var(--green);
}
.automatic-intro strong {
  font-size: 0.9rem;
}
.automatic-intro p {
  color: #61736a;
  font-size: 0.8125rem;
  line-height: 1.8;
  margin-top: 10px;
}
.automatic-list {
  display: grid;
  gap: 22px;
}
.automatic-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
}
.automatic-card-heading {
  display: flex;
  align-items: center;
  gap: 16px;
}
.automatic-card-heading > div {
  flex: 1;
  min-width: 0;
}
.automatic-card-heading .task-type {
  display: block;
  margin-bottom: 5px;
}
.automatic-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 25px 0 18px;
}
.automatic-facts span {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 7px;
}
.automatic-facts strong {
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}
.automatic-facts small {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--muted);
}
.automatic-message {
  line-height: 1.8;
  font-size: 0.85rem;
  color: #6c7d72;
}
.automatic-card-actions,
.automatic-save-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.automatic-card-actions {
  margin-top: 22px;
}
.automatic-records {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 16px;
  font-size: 0.8125rem;
  color: #61736a;
}
.automatic-records summary {
  cursor: pointer;
}
.automatic-records > div {
  display: grid;
  grid-template-columns: 90px 110px 1fr;
  gap: 14px;
  padding-top: 15px;
  line-height: 1.7;
}
.automatic-settings > .notice {
  margin: 0 0 20px;
}
.automatic-settings {
  margin-bottom: 22px;
}
.automatic-settings ~ .editor-submit {
  flex-wrap: wrap;
}
.automatic-settings .card-heading > .badge {
  margin-left: auto;
  white-space: nowrap;
}
.automatic-settings .field-tip {
  margin-top: 14px;
  line-height: 1.8;
}
.automatic-mail-history {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-top: 24px;
  padding: 24px;
}
.automatic-mail-history > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.8125rem;
  line-height: 1.7;
  margin-top: 14px;
}
.auth-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 32px 0;
  gap: 18px;
}
@media (max-width: 700px) {
  .editor-heading .heading-actions {
    flex-wrap: wrap;
  }
  .editor-heading .draft-state {
    white-space: normal;
    flex-basis: 100%;
  }
  .automatic-intro {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px;
  }
  .automatic-card {
    padding: 20px;
  }
  .automatic-card-heading {
    flex-wrap: wrap;
    gap: 12px;
  }
  .automatic-card-heading .task-icon {
    display: none;
  }
  .automatic-card-heading h2 {
    font-size: 1rem;
  }
  .automatic-facts {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .automatic-records > div {
    grid-template-columns: 90px 1fr;
    gap: 8px;
  }
  .automatic-records p {
    grid-column: 1 / -1;
  }
  .automatic-settings .card-heading {
    flex-wrap: wrap;
  }
  .automatic-settings .card-heading > .badge {
    margin-left: 0;
  }
  .automatic-save-actions {
    width: 100%;
  }
  .automatic-save-actions .button {
    flex: 1;
  }
  .auth-banner {
    margin: 15px;
    flex-wrap: wrap;
  }
}
