:root {
  color-scheme: light;
  --ink: #101827;
  --muted: #6c7585;
  --line: #dce2e8;
  --line-strong: #cbd4dd;
  --paper: #f5f7f8;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-solid: #fff;
  --navy: #10192b;
  --navy-soft: #1c2940;
  --blue: #2f6ff4;
  --blue-dark: #2058d1;
  --mint: #28b999;
  --mint-soft: #e5f8f2;
  --amber: #d78827;
  --amber-soft: #fff4df;
  --red: #d94d58;
  --red-soft: #fff0f1;
  --shadow: 0 20px 60px rgba(27, 40, 58, 0.09);
  --radius-lg: 26px;
  --radius-md: 17px;
  --radius-sm: 11px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { min-width: 320px; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(rgba(30, 54, 79, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 54, 79, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
  overflow-x: hidden;
}

button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .62; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

.ambient {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}
.ambient-a { width: 440px; height: 440px; right: -170px; top: -180px; background: rgba(64, 112, 255, .12); }
.ambient-b { width: 360px; height: 360px; left: -210px; bottom: -180px; background: rgba(40, 185, 153, .1); }

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .19em;
  line-height: 1.4;
}
.muted { color: var(--muted); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.login-view {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(380px, 520px);
  align-items: center;
  gap: clamp(60px, 9vw, 150px);
  max-width: 1320px;
  margin: 0 auto;
  padding: 56px clamp(28px, 6vw, 90px);
}
.login-brand {
  position: absolute;
  top: 38px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--navy);
  font-weight: 850;
  letter-spacing: .14em;
}
.login-brand img { width: 42px; height: 42px; }
.login-copy h1 {
  margin: 0;
  max-width: 660px;
  font-size: clamp(44px, 5vw, 72px);
  letter-spacing: -.055em;
  line-height: 1.08;
}
.login-copy > p:not(.eyebrow) {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}
.login-points { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 34px; color: #526071; font-size: 14px; }
.login-points span { display: flex; align-items: center; gap: 8px; }
.login-points i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px rgba(40,185,153,.12); }

.login-card {
  padding: 36px;
  border: 1px solid rgba(207, 217, 227, .9);
  border-radius: 30px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 28px 90px rgba(25, 41, 65, .14);
  backdrop-filter: blur(18px);
}
.login-card-head { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; }
.login-card-head h2 { margin: 0; font-size: 25px; letter-spacing: -.03em; }
.icon-box { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; color: white; background: var(--navy); }
.icon-box svg { width: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.field { display: grid; gap: 9px; margin-bottom: 20px; }
.field > span { font-size: 14px; font-weight: 750; color: #394559; }
.field em { margin-left: 4px; padding: 3px 7px; border-radius: 999px; background: #eef1f5; color: #778293; font-size: 11px; font-style: normal; font-weight: 700; }
.field small { color: var(--muted); font-size: 12px; line-height: 1.6; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  outline: none;
  background: rgba(255,255,255,.85);
  color: var(--ink);
  transition: border-color .18s, box-shadow .18s, background .18s;
}
input, select { height: 52px; padding: 0 15px; }
textarea { min-height: 100px; resize: vertical; padding: 14px 15px; line-height: 1.55; }
input::placeholder, textarea::placeholder { color: #a3aab4; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); background: white; box-shadow: 0 0 0 4px rgba(47,111,244,.11); }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 54px; }
.icon-button { display: grid; place-items: center; border: 0; background: transparent; color: #768092; }
.password-toggle { position: absolute; right: 6px; top: 5px; width: 42px; height: 42px; }
.password-toggle svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; padding-right: 48px; }
.select-wrap > svg { position: absolute; right: 16px; top: 16px; width: 20px; fill: none; stroke: #657083; stroke-width: 2; pointer-events: none; }

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 780;
  white-space: nowrap;
  transition: transform .16s, box-shadow .16s, background .16s;
}
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:active:not(:disabled) { transform: translateY(0); }
.button svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 2; }
.button.primary { color: white; background: var(--blue); box-shadow: 0 9px 24px rgba(47,111,244,.22); }
.button.primary:hover:not(:disabled) { background: var(--blue-dark); box-shadow: 0 12px 30px rgba(47,111,244,.27); }
.button.secondary { border-color: var(--line-strong); color: #2e394a; background: white; box-shadow: 0 4px 14px rgba(20,35,55,.05); }
.button.secondary:hover:not(:disabled) { border-color: #aeb9c6; background: #fbfcfd; }
.button.full { width: 100%; }
.privacy-note { margin: 16px 0 0; text-align: center; color: #8a93a0; font-size: 12px; }
.form-message { margin: 0 0 16px; padding: 11px 13px; border-radius: 10px; font-size: 13px; line-height: 1.55; }
.form-message.error { border: 1px solid #f1c7cb; color: #ad3540; background: var(--red-soft); }

.app-shell { min-height: 100vh; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 74px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 0 max(24px, calc((100vw - 1440px) / 2));
  border-bottom: 1px solid rgba(211,219,227,.85);
  background: rgba(250,251,252,.86);
  backdrop-filter: blur(20px);
}
.brand { display: flex; align-items: center; gap: 11px; justify-self: start; }
.brand img { width: 40px; height: 40px; }
.brand > span { display: grid; line-height: 1.05; }
.brand strong { font-size: 18px; letter-spacing: .05em; }
.brand small { margin-top: 4px; color: #7d8795; font-size: 8px; font-weight: 800; letter-spacing: .19em; }
.topnav { display: flex; align-self: stretch; gap: 6px; }
.topnav a { position: relative; display: flex; align-items: center; padding: 0 22px; color: #687386; font-size: 14px; font-weight: 700; }
.topnav a.active { color: var(--ink); }
.topnav a.active::after { content: ""; position: absolute; left: 22px; right: 22px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--blue); }
.top-actions { position: relative; display: flex; justify-self: end; align-items: center; gap: 12px; }
.health-pill { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid #d8e8e2; border-radius: 999px; color: #417466; background: rgba(245,252,249,.8); font-size: 12px; font-weight: 700; }
.health-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(40,185,153,.12); }
.health-pill.offline { border-color: #efd4d7; color: #a7434b; background: #fff7f7; }
.health-pill.offline i { background: var(--red); box-shadow: 0 0 0 4px rgba(217,77,88,.1); }
.account-button { height: 44px; display: flex; align-items: center; gap: 9px; padding: 0 11px 0 6px; border: 1px solid var(--line); border-radius: 999px; color: #3d4859; background: white; }
.account-button > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: white; background: var(--navy-soft); font-size: 12px; font-weight: 800; }
.account-button b { max-width: 120px; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.account-button svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 2; }
.account-menu { position: absolute; top: 52px; right: 0; min-width: 145px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 14px 40px rgba(24,37,55,.13); }
.account-menu button { width: 100%; padding: 10px 12px; border: 0; border-radius: 8px; text-align: left; color: #b13d47; background: transparent; font-weight: 650; }
.account-menu button:hover { background: var(--red-soft); }

.main { width: min(1440px, calc(100% - 48px)); margin: 0 auto; padding: 42px 0 72px; }
.hero { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding: 12px 6px 34px; }
.hero h1 { margin: 0; font-size: clamp(34px, 4vw, 52px); letter-spacing: -.05em; }
.hero > div > p:last-child { margin: 12px 0 0; color: var(--muted); font-size: 16px; }
.hero-meta { display: flex; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.64); overflow: hidden; }
.hero-meta > div { min-width: 150px; display: grid; gap: 5px; padding: 14px 18px; }
.hero-meta > div + div { border-left: 1px solid var(--line); }
.hero-meta span { color: var(--muted); font-size: 11px; }
.hero-meta strong { font-size: 13px; }

.compose-grid, .task-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .75fr); gap: 20px; align-items: start; }
.panel { border: 1px solid rgba(211,219,227,.95); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); backdrop-filter: blur(14px); }
.form-panel, .task-panel { padding: clamp(26px, 4vw, 46px); }
.guide-panel, .task-meta-panel { padding: 32px; }
.panel-heading { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 34px; }
.panel-heading h2, .guide-panel h2, .task-head h2, .history-head h2 { margin: 0; font-size: 27px; letter-spacing: -.035em; }
.panel-heading p:last-child, .guide-panel > p:not(.eyebrow), .history-head p { margin: 9px 0 0; color: var(--muted); line-height: 1.65; }
.step-index { display: grid; place-items: center; flex: 0 0 auto; width: 48px; height: 48px; border-radius: 15px; color: var(--blue); background: #edf3ff; font-weight: 850; }
.access-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.field-wide { grid-column: 1 / -1; }
.desktop-submit { margin-top: 10px; }

.guide-steps { display: grid; gap: 8px; margin: 25px 0 0; padding: 0; list-style: none; }
.guide-steps li { position: relative; display: flex; gap: 14px; padding: 13px 0; }
.guide-steps li:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 48px; bottom: -9px; width: 1px; background: var(--line); }
.guide-steps li > span { z-index: 1; display: grid; place-items: center; flex: 0 0 auto; width: 35px; height: 35px; border: 1px solid #cfd8e4; border-radius: 50%; color: var(--blue); background: white; font-size: 12px; font-weight: 850; }
.guide-steps strong { font-size: 14px; }
.guide-steps p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.security-card { display: flex; gap: 13px; margin-top: 25px; padding: 17px; border: 1px solid #d6e9e3; border-radius: 15px; background: #f1fbf7; }
.security-card svg { flex: 0 0 auto; width: 24px; fill: none; stroke: var(--mint); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.security-card strong { font-size: 13px; }
.security-card p { margin: 5px 0 0; color: #5e766e; font-size: 11px; line-height: 1.5; }

.task-head { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.task-head h2 span { color: #758092; font-size: 17px; }
.task-head .muted { margin: 8px 0 0; font-size: 12px; }
.status-badge { display: inline-flex; align-items: center; align-self: flex-start; gap: 8px; padding: 9px 13px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.status-badge i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-badge.pending { color: #3869cc; background: #eaf1ff; }
.status-badge.processing { color: #9a651d; background: var(--amber-soft); }
.status-badge.success { color: #178168; background: var(--mint-soft); }
.status-badge.failed { color: #b63f48; background: var(--red-soft); }
.task-steps { display: grid; grid-template-columns: repeat(4, 1fr); margin: 30px 0 34px; padding: 0; list-style: none; }
.task-steps li { position: relative; display: grid; justify-items: center; gap: 10px; padding: 0 8px; text-align: center; }
.task-steps li::before { content: ""; position: absolute; z-index: 0; top: 18px; left: 0; right: 0; height: 2px; background: #e1e6ec; }
.task-steps li:first-child::before { left: 50%; }
.task-steps li:last-child::before { right: 50%; }
.task-steps li > span { z-index: 1; display: grid; place-items: center; width: 37px; height: 37px; border: 2px solid #d7dee6; border-radius: 50%; color: #8e98a6; background: white; font-size: 12px; font-weight: 800; }
.task-steps li.done::before, .task-steps li.active::before { background: #8fb0fc; }
.task-steps li.done > span { border-color: var(--blue); color: white; background: var(--blue); }
.task-steps li.active > span { border-color: var(--blue); color: var(--blue); box-shadow: 0 0 0 6px rgba(47,111,244,.1); }
.task-steps strong { font-size: 12px; }
.task-steps p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.4; }

.task-action-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(250,251,252,.72); }
.task-action-card > div:first-child { display: flex; align-items: center; gap: 13px; }
.task-action-card strong { font-size: 14px; }
.task-action-card p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.action-number { display: grid; place-items: center; flex: 0 0 auto; width: 35px; height: 35px; border-radius: 11px; color: var(--blue); background: #eaf1ff; font-size: 12px; font-weight: 900; }
.callback-card { display: grid; grid-template-columns: 1fr auto; }
.callback-card > div:first-child { grid-column: 1 / -1; }
.callback-card .form-message { grid-column: 1 / -1; margin: 0; }
.callback-field { min-width: 0; margin: 0; }
.callback-field textarea { min-height: 80px; }
.waiting-card { display: flex; align-items: center; gap: 16px; margin-top: 14px; padding: 23px; border: 1px solid #eadbbf; border-radius: 16px; background: #fffaf1; }
.waiting-card strong { font-size: 14px; }
.waiting-card p { margin: 5px 0 0; color: #887459; font-size: 12px; }
.loader { width: 28px; height: 28px; border: 3px solid #eeddbf; border-top-color: var(--amber); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.result-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 17px; margin-top: 14px; padding: 22px; border-radius: 17px; }
.result-card > span { display: grid; place-items: center; width: 49px; height: 49px; border-radius: 15px; }
.result-card svg { width: 27px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.result-card h3 { margin: 0; font-size: 20px; }
.result-card p:not(.eyebrow) { margin: 6px 0 0; font-size: 12px; line-height: 1.55; }
.success-card { border: 1px solid #cce9df; background: #effaf6; }
.success-card > span { color: white; background: var(--mint); }
.success-card p:not(.eyebrow) { color: #54746a; }
.failed-card { border: 1px solid #f0cdd0; background: #fff5f5; }
.failed-card > span { color: var(--red); background: #ffe1e4; }
.failed-card p:not(.eyebrow) { color: #875f63; }

.task-meta-panel h3 { margin: 0 0 22px; font-size: 22px; }
.task-meta-panel dl { margin: 0; }
.task-meta-panel dl div { display: flex; justify-content: space-between; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.task-meta-panel dt { color: var(--muted); font-size: 12px; }
.task-meta-panel dd { margin: 0; max-width: 190px; overflow: hidden; text-overflow: ellipsis; text-align: right; font-size: 12px; font-weight: 750; white-space: nowrap; }
.text-button { margin-top: 22px; padding: 0; border: 0; color: var(--blue); background: none; font-size: 13px; font-weight: 750; }

.history-panel { padding: clamp(25px, 4vw, 42px); }
.history-head { display: flex; justify-content: space-between; align-items: end; gap: 25px; padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.history-list { display: grid; }
.history-item { display: grid; grid-template-columns: minmax(170px, 1.2fr) minmax(150px, .8fr) minmax(130px, .7fr) minmax(120px, .65fr) auto; align-items: center; gap: 22px; padding: 18px 6px; border-bottom: 1px solid var(--line); }
.history-item:last-child { border-bottom: 0; }
.history-item strong { display: block; overflow: hidden; text-overflow: ellipsis; font-size: 14px; white-space: nowrap; }
.history-item small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.history-label { display: block; margin-bottom: 4px; color: #8a94a2; font-size: 10px; }
.history-item .button { min-height: 39px; padding: 0 15px; font-size: 12px; }
.empty-state { min-height: 370px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.empty-state > span { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; color: var(--blue); background: #edf3ff; }
.empty-state svg { width: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.empty-state h3 { margin: 18px 0 0; }
.empty-state p { margin: 8px 0 20px; color: var(--muted); font-size: 13px; }

.footer { width: min(1440px, calc(100% - 48px)); display: flex; justify-content: space-between; margin: 0 auto; padding: 20px 6px 32px; border-top: 1px solid rgba(205,214,223,.8); color: #88919d; font-size: 11px; }
.mobile-action-bar { display: none; }
.toast-region { position: fixed; z-index: 100; right: 20px; bottom: 20px; display: grid; gap: 10px; width: min(360px, calc(100vw - 40px)); }
.toast { padding: 14px 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--navy); color: white; box-shadow: 0 16px 45px rgba(13,24,42,.25); font-size: 13px; line-height: 1.5; animation: toast-in .22s ease-out; }
.toast.error { border-color: #74323a; background: #4a2329; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 920px) {
  .login-view { grid-template-columns: 1fr; gap: 38px; max-width: 620px; padding-top: 112px; }
  .login-copy h1 { font-size: clamp(40px, 9vw, 58px); }
  .topbar { grid-template-columns: 1fr auto; padding: 0 20px; }
  .topnav { position: fixed; z-index: 20; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); height: 58px; justify-content: center; border: 1px solid #d9e0e8; border-radius: 18px; background: rgba(255,255,255,.94); box-shadow: 0 14px 44px rgba(24,37,55,.17); backdrop-filter: blur(20px); }
  .topnav a { flex: 1; justify-content: center; padding: 0 12px; }
  .topnav a.active::after { top: -1px; bottom: auto; left: 28%; right: 28%; border-radius: 0 0 3px 3px; }
  .health-pill { display: none; }
  .hero { align-items: start; }
  .hero-meta { display: none; }
  .compose-grid, .task-layout { grid-template-columns: 1fr; }
  .guide-panel { order: 2; }
  .task-meta-panel { order: 2; }
  .history-item { grid-template-columns: 1fr 1fr; gap: 12px 20px; }
  .history-item .button { grid-column: 1 / -1; }
  .footer { margin-bottom: 80px; }
}

@media (max-width: 640px) {
  .login-view { display: flex; flex-direction: column; justify-content: center; padding: 92px 18px 30px; }
  .login-brand { top: 24px; }
  .login-copy h1 { font-size: 37px; }
  .login-copy > p:not(.eyebrow), .login-points { display: none; }
  .login-card { width: 100%; padding: 24px 20px; border-radius: 23px; }
  .login-card-head { margin-bottom: 24px; }
  .topbar { height: 66px; padding: 0 14px; }
  .brand img { width: 36px; height: 36px; }
  .brand strong { font-size: 16px; }
  .account-button b, .account-button > svg { display: none; }
  .account-button { padding: 0 5px; border: 0; background: transparent; }
  .main { width: calc(100% - 24px); padding: 25px 0 120px; }
  .hero { padding: 8px 4px 22px; }
  .hero h1 { font-size: 34px; }
  .hero > div > p:last-child { font-size: 13px; line-height: 1.6; }
  .panel { border-radius: 21px; }
  .form-panel, .task-panel, .guide-panel, .task-meta-panel, .history-panel { padding: 21px 18px; }
  .panel-heading { gap: 12px; margin-bottom: 26px; }
  .panel-heading h2, .guide-panel h2, .task-head h2, .history-head h2 { font-size: 23px; }
  .step-index { width: 42px; height: 42px; border-radius: 13px; }
  .access-form { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .desktop-submit { display: none; }
  .guide-panel { display: none; }
  .mobile-action-bar { position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; display: block; padding: 11px 14px calc(11px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(211,219,227,.9); background: rgba(250,251,252,.94); backdrop-filter: blur(18px); }
  .mobile-action-bar[hidden] { display: none !important; }
  .topnav { bottom: calc(82px + env(safe-area-inset-bottom)); }
  .task-head { align-items: flex-start; }
  .task-head .status-badge { padding: 8px 10px; }
  .task-steps { grid-template-columns: 1fr; gap: 0; margin: 24px 0 27px; }
  .task-steps li { min-height: 62px; grid-template-columns: 38px 1fr; justify-items: start; align-items: start; gap: 12px; padding: 0; text-align: left; }
  .task-steps li::before { top: 0; bottom: 0; left: 18px !important; right: auto !important; width: 2px; height: auto; }
  .task-steps li:first-child::before { top: 18px; }
  .task-steps li:last-child::before { bottom: calc(100% - 18px); }
  .task-steps li > span { grid-column: 1; }
  .task-steps li > div { grid-column: 2; }
  .task-steps p { font-size: 11px; }
  .task-action-card { align-items: stretch; flex-direction: column; }
  .task-action-card .button { width: 100%; }
  .callback-card { grid-template-columns: 1fr; }
  .callback-card > div:first-child { grid-column: auto; }
  .result-card { grid-template-columns: auto 1fr; }
  .result-card .button { grid-column: 1 / -1; width: 100%; }
  .task-meta-panel { display: none; }
  .history-head { align-items: flex-start; flex-direction: column; }
  .history-head .button { width: 100%; }
  .history-item { grid-template-columns: 1fr; gap: 11px; padding: 18px 2px; }
  .history-item .button { grid-column: auto; width: 100%; }
  .footer { display: none; }
  .toast-region { right: 12px; bottom: calc(88px + env(safe-area-inset-bottom)); width: calc(100vw - 24px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
