:root {
      --bg: #fffaf6;
      --card: #ffffff;
      --text: #243042;
      --muted: #5f6b7a;
      --primary: #ff8c5a;
      --primary-dark: #ea7440;
      --secondary: #4fb3a9;
      --secondary-dark: #3e988f;
      --line: #eadfd6;
      --shadow: 0 10px 28px rgba(36, 48, 66, 0.08);
      --radius-xl: 28px;
      --radius-lg: 20px;
      --max: var(--totink-site-max, 1180px);
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }

    body {
      margin: 0;
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      color: var(--text);
      background:
        radial-gradient(circle at top left, #fff1e8 0, transparent 28%),
        radial-gradient(circle at top right, #eef9ff 0, transparent 22%),
        var(--bg);
      line-height: 1.6;
    }

    img { max-width: 100%; display: block; }
    a { color: inherit; text-decoration: none; }

    .sr-only {
      position: absolute !important;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0,0,0,0);
      white-space: nowrap;
      border: 0;
    }

    .container {
      width: min(100% - 32px, var(--max));
      margin: 0 auto;
    }

    .skip-link {
      position: absolute;
      left: -9999px;
      width: 1px;
      height: 1px;
      overflow: hidden;
    }

    .skip-link:focus {
      left: 16px;
      top: 16px;
      width: auto;
      height: auto;
      background: #fff;
      border-radius: 12px;
      padding: 10px 14px;
      z-index: 999;
      box-shadow: var(--shadow);
    }

    /* Header same style as homepage */
    .topbar {
      position: sticky;
      top: 0;
      z-index: 50;
      backdrop-filter: blur(12px);
      background: rgba(255, 250, 246, 0.86);
      border-bottom: 1px solid rgba(234, 223, 214, 0.8);
    }

    .nav {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      min-height: 76px;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
      font-weight: 800;
      letter-spacing: -0.02em;
      font-size: 1.15rem;
      white-space: nowrap;
    }

    .brand-logo {
      width: 42px;
      height: 42px;
      border-radius: 14px;
      object-fit: cover;
      box-shadow: 0 8px 18px rgba(255, 140, 90, 0.20);
      background: #fff;
      border: 1px solid rgba(234, 223, 214, 0.9);
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 22px;
      flex-wrap: wrap;
      justify-content: center;
    }

    .nav-links a {
      color: var(--muted);
      font-weight: 600;
      font-size: 0.96rem;
    }

    .nav-links a:hover {
      color: var(--text);
    }

    .nav-links a.active {
      color: var(--primary-dark);
      font-weight: 700;
    }

    .nav-actions {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
      justify-content: flex-end;
    }

    .lang-switch {
      appearance: none;
      border: 1px solid var(--line);
      background: #fff;
      color: var(--text);
      border-radius: 12px;
      padding: 10px 12px;
      font-weight: 600;
      cursor: pointer;
      width: 120px;
      min-width: 120px;
      max-width: 120px;
      height: 44px;
      line-height: 1;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      min-height: 48px;
      padding: 0 18px;
      border-radius: 14px;
      font-weight: 700;
      border: 0;
      cursor: pointer;
      transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
      white-space: nowrap;
      font-size: 0.98rem;
    }

    .btn:hover { transform: translateY(-1px); }

    .btn-primary {
      background: var(--primary);
      color: #fff;
      box-shadow: 0 10px 22px rgba(255, 140, 90, 0.24);
    }

    .btn-primary:hover { background: var(--primary-dark); }

    .btn-secondary {
      background: #fff;
      color: var(--text);
      border: 1px solid var(--line);
    }

    .btn-secondary:hover { background: #fff8f4; }

    .hero {
      padding: 34px 0 24px;
      border-bottom: 1px solid var(--line);
      background: linear-gradient(180deg, #fffaf6 0%, #fffdfb 100%);
    }

    .breadcrumbs {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      color: var(--muted);
      font-size: 0.94rem;
      margin-bottom: 16px;
    }

    .breadcrumbs a:hover { color: var(--primary-dark); }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 12px;
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 999px;
      color: var(--secondary-dark);
      font-weight: 700;
      font-size: 0.92rem;
      box-shadow: var(--shadow);
    }

    h1 {
      margin: 18px 0 14px;
      font-size: clamp(2.2rem, 4vw, 3.8rem);
      line-height: 1.05;
      letter-spacing: -0.04em;
    }

    .hero p {
      margin: 0;
      color: var(--muted);
      font-size: 1.08rem;
      max-width: 62ch;
    }

    .hero-grid {
      display: grid;
      grid-template-columns: 1.08fr 0.92fr;
      gap: 28px;
      align-items: center;
    }

    .hero-actions {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
      margin-top: 24px;
    }

    .hero-badges {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin-top: 24px;
    }

    .badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 14px;
      border-radius: 999px;
      background: #fff;
      border: 1px solid var(--line);
      color: var(--text);
      font-weight: 700;
      font-size: 0.93rem;
    }

    .hero-visual .visual-card,
    .panel,
    .section-card,
    .preview-panel {
      background: #fff;
      border: 1px solid var(--line);
      border-radius: var(--radius-xl);
      box-shadow: var(--shadow);
    }

    .hero-visual .visual-card {
      padding: 20px;
      overflow: hidden;
      background: linear-gradient(180deg, #ffffff 0%, #fff7f2 100%);
    }

    .mini-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 14px;
    }

    .mini-card {
      border: 1px solid var(--line);
      border-radius: 18px;
      padding: 14px;
      min-height: 145px;
      background: #fff;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    .mini-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 12px;
    }

    .mini-tag {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 28px;
      padding: 0 10px;
      border-radius: 999px;
      font-size: 0.78rem;
      font-weight: 800;
    }

    .tag-orange { background: #fff0e7; color: #d96734; }
    .tag-blue { background: #eaf8ff; color: #2f7aa5; }
    .tag-green { background: #ebfbf6; color: #267d6c; }
    .tag-pink { background: #ffeef6; color: #b35a7e; }

    .mini-sheet {
      border: 2px dashed #ecd6c9;
      border-radius: 14px;
      padding: 12px;
      min-height: 84px;
      background: linear-gradient(180deg, #fffdfa 0%, #fff7f0 100%);
      display: grid;
      align-content: center;
      gap: 8px;
    }

    .mini-lines {
      display: grid;
      gap: 8px;
    }

    .line {
      height: 8px;
      border-radius: 999px;
      background: #f7e4d9;
    }

    .line.short { width: 58%; }
    .line.mid { width: 78%; }
    .line.full { width: 100%; }

    .mini-shapes {
      display: flex;
      gap: 10px;
      align-items: center;
      justify-content: center;
      flex-wrap: wrap;
    }

    .shape-box {
      width: 32px;
      height: 32px;
      border-radius: 10px;
      background: #ffe7d8;
      border: 2px solid #ffc2a1;
    }

    .shape-circle {
      border-radius: 999px;
      background: #e1f3ff;
      border-color: #b6ddf8;
    }

    .shape-triangle {
      width: 0;
      height: 0;
      border-left: 17px solid transparent;
      border-right: 17px solid transparent;
      border-bottom: 30px solid #ffdf9f;
      background: transparent;
      border-radius: 0;
    }

    .layout {
      display: grid;
      grid-template-columns: 360px 1fr;
      gap: 28px;
      align-items: start;
      margin: 28px 0;
    }

    .panel {
      position: sticky;
      top: 92px;
      padding: 22px;
    }

    .panel-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 20px;
    }

    .panel h2 {
      margin: 0;
      font-size: 1.25rem;
      letter-spacing: -0.02em;
    }

    .mode-chip {
      display: inline-flex;
      align-items: center;
      min-height: 30px;
      padding: 0 10px;
      border-radius: 999px;
      font-size: 0.75rem;
      font-weight: 800;
      letter-spacing: 0.08em;
      background: #ebfbf6;
      color: #267d6c;
      border: 1px solid #d5f3ea;
      text-transform: uppercase;
    }

    .field { margin-bottom: 18px; }

    .field label {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 8px;
      font-size: 0.94rem;
      font-weight: 700;
      color: var(--text);
    }

    .field-help {
      margin-top: 6px;
      font-size: 0.82rem;
      color: var(--muted);
    }

    select:not(#langSwitch),
    input[type="range"] {
      width: 100%;
    }

    select:not(#langSwitch) {
      min-height: 50px;
      border: 1px solid var(--line);
      border-radius: 16px;
      padding: 0 14px;
      background: #fff;
      color: var(--text);
      font-size: 1rem;
      font-weight: 600;
      outline: none;
    }

    .slider-meta {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      margin-top: 6px;
      font-size: 0.8rem;
      color: var(--muted);
    }

    input[type="range"] {
      appearance: none;
      height: 8px;
      border-radius: 999px;
      background: #eedfd5;
      outline: none;
    }

    input[type="range"]::-webkit-slider-thumb {
      appearance: none;
      width: 22px;
      height: 22px;
      border-radius: 999px;
      background: var(--secondary);
      border: 3px solid #fff;
      box-shadow: 0 2px 10px rgba(79, 179, 169, 0.35);
      cursor: pointer;
    }

    .preset-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }

    .preset-btn {
      min-height: 48px;
      border-radius: 16px;
      border: 1px solid var(--line);
      background: #fff8f4;
      color: var(--text);
      font-weight: 700;
      cursor: pointer;
      transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
    }

    .preset-btn:hover {
      transform: translateY(-1px);
      background: #fff;
      border-color: #e5cdbd;
    }

    .preset-btn.active {
      border-color: var(--secondary);
      background: #effbf8;
      color: var(--secondary-dark);
    }

    .status-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
      margin: 20px 0;
    }

    .status-card {
      border: 1px solid var(--line);
      border-radius: 18px;
      background: #fff9f5;
      padding: 14px;
    }

    .status-card .label {
      font-size: 0.75rem;
      font-weight: 800;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }

    .status-card .value {
      margin-top: 8px;
      font-weight: 800;
      color: var(--text);
      font-size: 0.96rem;
    }

    .panel-actions {
      display: grid;
      gap: 10px;
      margin-top: 20px;
      padding-top: 20px;
      border-top: 1px solid var(--line);
    }

    .panel-note {
      margin-top: 10px;
      font-size: 0.8rem;
      color: var(--muted);
      text-align: center;
    }

    .preview-panel {
      padding: 22px;
    }

    .section-head {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 16px;
    }

    .section-title {
      margin: 0;
      font-size: 1.55rem;
      line-height: 1.15;
      letter-spacing: -0.03em;
    }

    .section-desc {
      margin: 6px 0 0;
      color: var(--muted);
      font-size: 0.98rem;
    }

    .chip {
      display: inline-flex;
      align-items: center;
      min-height: 30px;
      padding: 0 10px;
      border-radius: 999px;
      background: #fff8f4;
      border: 1px solid var(--line);
      color: var(--muted);
      font-weight: 800;
      font-size: 0.78rem;
    }

    .preview-wrap {
      background: #e5e7eb;
      border: 1px solid #d4d7db;
      border-radius: 22px;
      padding: 16px;
      min-height: 400px;
      max-height: 920px;
      overflow: auto;
      box-shadow: inset 0 8px 18px rgba(0,0,0,0.05);
    }

    .preview-stack {
      display: grid;
      gap: 24px;
      justify-content: center;
    }

    .page {
      width: 800px;
      height: 1131px;
      background: #fff;
      border-radius: 8px;
      position: relative;
      overflow: hidden;
      box-shadow: 0 10px 22px rgba(0,0,0,0.12);
      color: #243042;
    }

    .page-inner {
      position: absolute;
      inset: 0;
      padding: 54px 56px 48px;
    }

    .page-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      margin-bottom: 24px;
    }

    .page-title {
      font-size: 30px;
      font-weight: 800;
      letter-spacing: -0.03em;
    }

    .page-badge {
      font-size: 13px;
      font-weight: 800;
      color: #267d6c;
      background: #ebfbf6;
      border: 1px solid #d5f3ea;
      border-radius: 999px;
      padding: 6px 10px;
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }

    .name-line {
      display: flex;
      align-items: center;
      gap: 14px;
      margin-bottom: 26px;
      color: #667085;
      font-size: 18px;
      font-weight: 700;
    }

    .name-line .rule {
      flex: 1;
      border-bottom: 2px solid #d7dee7;
      transform: translateY(1px);
    }

    .worksheet-canvas {
      width: 100%;
      height: 860px;
      border-radius: 18px;
      border: 1px dashed #eadfd6;
      background: linear-gradient(180deg, #fff 0%, #fffdfb 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
    }

    .page-footer {
      position: absolute;
      left: 56px;
      right: 56px;
      bottom: 28px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      color: #8a97a7;
      font-size: 13px;
      font-weight: 700;
    }

    .info-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 16px;
      margin-top: 18px;
    }

    .info-card,
    .faq-card,
    .related-card,
    .guide-card {
      background: #fff;
      border: 1px solid var(--line);
      border-radius: var(--radius-lg);
      padding: 18px;
      box-shadow: var(--shadow);
      transition: transform 0.18s ease, border-color 0.18s ease;
    }

    .info-card:hover,
    .faq-card:hover,
    .related-card:hover,
    .guide-card:hover {
      transform: translateY(-2px);
      border-color: #e5cdbd;
    }

    .card-kicker {
      font-size: 0.82rem;
      font-weight: 800;
      color: var(--secondary-dark);
      margin-bottom: 6px;
    }

    .card-title {
      margin: 0 0 8px;
      font-size: 1rem;
      font-weight: 800;
      line-height: 1.35;
    }

    .card-text {
      margin: 0;
      color: var(--muted);
      font-size: 0.95rem;
    }

    .split-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px;
      margin-top: 18px;
    }

    .faq-grid,
    .related-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
      margin-top: 16px;
    }

    .related-grid.three {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .related-card .cta {
      margin-top: 12px;
      color: var(--secondary-dark);
      font-weight: 800;
      font-size: 0.92rem;
    }

    .section {
      margin-top: 18px;
    }

    footer {
      margin-top: 32px;
      border-top: 1px solid var(--line);
      background: rgba(255, 255, 255, 0.7);
    }

    .footer-grid {
      display: grid;
      grid-template-columns: 1.2fr 1fr 1fr 1fr;
      gap: 24px;
      padding: 34px 0 24px;
    }

    .footer-title {
      margin: 0 0 12px;
      font-size: 1rem;
      font-weight: 800;
    }

    .footer-list {
      display: grid;
      gap: 10px;
    }

    .footer-list a,
    .footer-copy,
    .footer-copy p {
      color: var(--muted);
    }

    .footer-list a:hover {
      color: var(--text);
    }

    .footer-bottom {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      border-top: 1px solid var(--line);
      padding: 16px 0 28px;
      color: var(--muted);
      font-size: 0.94rem;
      flex-wrap: wrap;
    }

    .modal-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(16, 24, 40, 0.55);
      display: none;
      align-items: center;
      justify-content: center;
      padding: 16px;
      z-index: 110;
      backdrop-filter: blur(4px);
    }

    .modal-backdrop.show { display: flex; }

    .modal {
      width: min(100%, 460px);
      background: #fff;
      border-radius: 28px;
      border: 1px solid var(--line);
      box-shadow: 0 24px 60px rgba(16,24,40,0.18);
      padding: 24px;
      position: relative;
    }

    .modal-close {
      position: absolute;
      top: 12px;
      right: 12px;
      width: 42px;
      height: 42px;
      border: 0;
      border-radius: 999px;
      background: #fff8f4;
      color: var(--muted);
      cursor: pointer;
      font-size: 1.1rem;
      font-weight: 800;
    }

    .modal h3 {
      margin: 0 0 8px;
      font-size: 1.3rem;
      letter-spacing: -0.02em;
    }

    .modal p {
      margin: 0 0 18px;
      color: var(--muted);
    }

    .hidden { display: none !important; }

    @media (max-width: 1200px) {
      .page {
        width: 680px;
        height: 960px;
      }
      .page-inner { padding: 44px 44px 40px; }
      .worksheet-canvas { height: 730px; }
    }

    @media (max-width: 1024px) {
      .hero-grid,
      .layout,
      .split-grid,
      .faq-grid,
      .footer-grid,
      .related-grid.three,
      .info-grid {
        grid-template-columns: 1fr;
      }

      .mini-grid {
        grid-template-columns: 1fr 1fr;
      }

      .panel {
        position: static;
      }

      .footer-grid {
        grid-template-columns: 1.2fr 1fr 1fr;
      }
    }

    @media (max-width: 820px) {
      .nav {
        align-items: flex-start;
        padding: 14px 0;
        flex-direction: column;
      }

      .nav-links,
      .nav-actions {
        width: 100%;
        justify-content: flex-start;
      }

      .mini-grid,
      .faq-grid,
      .related-grid {
        grid-template-columns: 1fr;
      }

      .preview-wrap {
        padding: 12px;
      }

      .page {
        width: 560px;
        height: 792px;
      }

      .page-inner {
        padding: 30px 28px 28px;
      }

      .page-title {
        font-size: 24px;
      }

      .worksheet-canvas {
        height: 610px;
      }

      .page-footer {
        left: 28px;
        right: 28px;
      }
    }

    @media (max-width: 640px) {
      .container {
        width: min(100% - 20px, var(--max));
      }

      .page {
        width: 360px;
        height: 509px;
      }

      .page-inner {
        padding: 18px 16px 16px;
      }

      .page-title {
        font-size: 17px;
      }

      .page-badge {
        font-size: 10px;
        padding: 4px 7px;
      }

      .name-line {
        font-size: 12px;
        margin-bottom: 14px;
      }

      .worksheet-canvas {
        height: 400px;
        border-radius: 12px;
      }

      .page-footer {
        bottom: 14px;
        left: 16px;
        right: 16px;
        font-size: 9px;
      }

      .hero-badges {
        gap: 8px;
      }

      .badge {
        font-size: 0.82rem;
        padding: 8px 10px;
      }

      .footer-grid {
        grid-template-columns: 1fr;
      }

      .preset-grid,
      .status-grid {
        grid-template-columns: 1fr;
      }
    }

    /* Homepage glass shell + scissor skills visual refresh */
    :root {
      --glass-ink: #17233f;
      --glass-ink-soft: #506078;
      --glass-muted: #7d8aa2;
      --glass-blue: #246bff;
      --glass-blue-dark: #1555d5;
      --glass-orange: #ff8c5a;
      --glass-cyan: #5fd7ff;
      --glass-violet: #8d7dff;
      --glass-line: rgba(122,151,196,.20);
      --glass-panel: rgba(255,255,255,.70);
      --glass-panel-strong: rgba(255,255,255,.88);
      --glass-shadow: 0 30px 88px rgba(40,58,94,.16);
      --glass-shadow-soft: 0 18px 46px rgba(40,58,94,.12);
      --radius-xl: 32px;
      --radius-lg: 24px;
      --content: 1180px;
      color-scheme: light;
    }

    body.totink-glass-architecture {
      min-height: 100vh;
      color: var(--glass-ink);
      background:
        radial-gradient(circle at 14% 10%, rgba(79,168,255,.32) 0, rgba(79,168,255,.06) 26%, transparent 44%),
        radial-gradient(circle at 88% 18%, rgba(153,134,255,.36) 0, rgba(153,134,255,.08) 23%, transparent 44%),
        radial-gradient(circle at 84% 78%, rgba(95,215,255,.28) 0, transparent 34%),
        linear-gradient(135deg, #edf7ff 0%, #f8fbff 42%, #f4f0ff 100%) !important;
      overflow-x: hidden;
    }

    body.totink-glass-architecture::before,
    body.totink-glass-architecture::after {
      content: "";
      position: fixed;
      pointer-events: none;
      z-index: 0;
      border-radius: 999px;
      filter: blur(2px);
    }

    body.totink-glass-architecture::before {
      width: 360px;
      height: 360px;
      right: -120px;
      top: 72px;
      background: radial-gradient(circle, rgba(141,125,255,.22), transparent 64%);
    }

    body.totink-glass-architecture::after {
      width: 300px;
      height: 300px;
      left: -110px;
      bottom: 100px;
      background: radial-gradient(circle, rgba(95,215,255,.23), transparent 64%);
    }

    .page-wrap {
      width: calc(100% - 28px);
      max-width: none;
      margin: 16px auto 32px;
      border: 1px solid rgba(255,255,255,.68);
      border-radius: 32px;
      background: linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,255,255,.58));
      box-shadow: var(--glass-shadow);
      backdrop-filter: blur(28px) saturate(1.15);
      overflow: hidden;
      position: relative;
      z-index: 1;
    }

    .page-wrap::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        radial-gradient(circle at 78% 14%, rgba(58,141,255,.14), transparent 28%),
        radial-gradient(circle at 16% 76%, rgba(142,126,255,.10), transparent 34%);
      pointer-events: none;
    }

    .page-inner {
      position: relative;
      z-index: 1;
    }

    .page-progress {
      position: fixed;
      top: 0;
      left: 0;
      height: 4px;
      width: 0;
      z-index: 999;
      background: linear-gradient(90deg, #2f7cff, #8d7dff, #ff8c5a);
      box-shadow: 0 0 18px rgba(47,124,255,.35);
      transition: width .12s linear;
    }

    .container {
      width: calc(100% - 44px);
      max-width: none;
      margin-inline: auto;
    }

    .topbar {
      position: sticky;
      top: 0;
      z-index: 50;
      padding: 18px 0 8px;
      background: transparent !important;
      border: 0 !important;
      backdrop-filter: none !important;
    }

    .nav {
      min-height: 52px;
      display: grid;
      grid-template-columns: auto minmax(0, 1fr) auto;
      align-items: center;
      gap: 18px;
      padding: 9px 10px 9px 14px;
      border: 1px solid rgba(255,255,255,.76);
      border-radius: 26px;
      background: rgba(255,255,255,.58);
      box-shadow: 0 12px 34px rgba(52,80,128,.10);
      backdrop-filter: blur(18px);
    }

    .brand {
      color: var(--glass-ink);
      gap: 10px;
      font-weight: 950;
      letter-spacing: -.03em;
    }

    .brand-logo {
      width: 38px;
      height: 38px;
      border-radius: 14px;
      border: 0;
      background: transparent;
      box-shadow: 0 10px 22px rgba(36,107,255,.16);
    }

    .brand span { font-size: 1rem; }

    .nav-links {
      gap: 4px;
      justify-content: center;
      min-width: 0;
    }

    .nav-links a {
      min-height: 34px;
      display: inline-flex;
      align-items: center;
      padding: 0 10px;
      border-radius: 999px;
      color: rgba(23,35,63,.72);
      font-size: .82rem;
      font-weight: 850;
      transition: background .16s ease, color .16s ease, transform .16s ease;
      white-space: nowrap;
    }

    .nav-links a:hover,
    .nav-links a.active {
      background: rgba(36,107,255,.10);
      color: var(--glass-blue-dark);
      transform: translateY(-1px);
    }

    .nav-actions {
      gap: 8px;
      flex-wrap: nowrap;
    }

    .lang-switch {
      height: 36px;
      width: auto;
      min-width: 96px;
      max-width: 108px;
      border: 1px solid rgba(90,125,180,.18);
      border-radius: 999px;
      padding: 0 10px;
      background: rgba(255,255,255,.74);
      color: var(--glass-ink);
      font-weight: 850;
      box-shadow: none;
    }

    .btn,
    .nav-actions .btn,
    .hero-actions .btn,
    .panel-actions .btn {
      border-radius: 999px;
      font-weight: 850;
      transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
    }

    .btn:hover {
      transform: translateY(-2px);
    }

    .btn-primary {
      color: #fff !important;
      background: linear-gradient(135deg, #2f7cff, #1455dc) !important;
      box-shadow: 0 14px 30px rgba(36,107,255,.26) !important;
    }

    .btn-secondary {
      color: var(--glass-ink) !important;
      background: rgba(255,255,255,.66) !important;
      border: 1px solid rgba(94,125,178,.18) !important;
      box-shadow: 0 12px 26px rgba(40,58,94,.08) !important;
    }

    .totink-main-frame {
      background: transparent !important;
      border: 0 !important;
      box-shadow: none !important;
    }

    .hero {
      padding-top: clamp(24px, 3vw, 44px);
      padding-bottom: 24px;
      border-bottom: 0;
      background: transparent !important;
    }

    .hero > .container {
      border: 1px solid rgba(255,255,255,.74);
      border-radius: 30px;
      background:
        radial-gradient(circle at 88% 18%, rgba(95,215,255,.18), transparent 34%),
        radial-gradient(circle at 10% 90%, rgba(141,125,255,.13), transparent 40%),
        rgba(255,255,255,.56);
      box-shadow: var(--glass-shadow-soft);
      backdrop-filter: blur(20px) saturate(1.12);
      padding: clamp(22px, 3vw, 40px);
      overflow: hidden;
      position: relative;
    }

    .hero > .container::after {
      content: "";
      position: absolute;
      right: -80px;
      bottom: -90px;
      width: 280px;
      height: 280px;
      border-radius: 999px;
      background: radial-gradient(circle, rgba(36,107,255,.12), transparent 70%);
      pointer-events: none;
    }

    .breadcrumbs {
      color: var(--glass-ink-soft);
      margin-bottom: 16px;
    }

    .eyebrow,
    .badge,
    .chip,
    .mode-chip,
    .mini-tag {
      border: 1px solid rgba(122,151,196,.18) !important;
      background: rgba(255,255,255,.64) !important;
      color: var(--glass-blue-dark) !important;
      box-shadow: 0 10px 22px rgba(40,58,94,.07);
    }

    h1 {
      color: var(--glass-ink);
      font-size: clamp(2.05rem, 3.6vw, 3.35rem);
      line-height: 1.04;
      letter-spacing: -.052em;
    }

    .hero p,
    .section-desc,
    .card-text,
    .panel-note,
    .field-help,
    .footer-copy,
    .footer-copy p,
    .footer-list a,
    .footer-bottom {
      color: var(--glass-ink-soft) !important;
    }

    .hero-visual .visual-card,
    .panel,
    .preview-panel,
    .section-card,
    .info-card,
    .faq-card,
    .related-card,
    .guide-card,
    .status-card,
    .mini-card {
      background: rgba(255,255,255,.66) !important;
      border: 1px solid rgba(255,255,255,.76) !important;
      box-shadow: 0 18px 46px rgba(40,58,94,.10) !important;
      backdrop-filter: blur(18px) saturate(1.1) !important;
    }

    .panel,
    .preview-panel,
    .section-card {
      border-radius: 30px !important;
    }

    .panel {
      background:
        radial-gradient(circle at 90% 8%, rgba(36,107,255,.08), transparent 32%),
        rgba(255,255,255,.72) !important;
    }

    select:not(#langSwitch),
    .preset-btn,
    .switch-row,
    .status-card {
      border-color: rgba(122,151,196,.18) !important;
      background: rgba(255,255,255,.62) !important;
      color: var(--glass-ink) !important;
    }

    input[type="range"] {
      background: linear-gradient(90deg, rgba(47,124,255,.22), rgba(255,140,90,.18)) !important;
      accent-color: var(--glass-blue);
    }

    input[type="range"]::-webkit-slider-thumb {
      background: var(--glass-blue) !important;
      box-shadow: 0 8px 22px rgba(36,107,255,.28) !important;
    }

    .preset-btn {
      overflow: hidden;
      position: relative;
    }

    .preset-btn::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.66) 48%, transparent 100%);
      transform: translateX(-130%);
      transition: transform .55s ease;
    }

    .preset-btn:hover::after,
    .preset-btn.active::after {
      transform: translateX(130%);
    }

    .preset-btn.active {
      border-color: rgba(36,107,255,.28) !important;
      background: rgba(36,107,255,.10) !important;
      color: var(--glass-blue-dark) !important;
    }

    .preview-wrap {
      background:
        radial-gradient(circle at 20% 10%, rgba(95,215,255,.12), transparent 36%),
        linear-gradient(135deg, rgba(235,243,255,.86), rgba(246,241,255,.82)) !important;
      border: 1px solid rgba(122,151,196,.22) !important;
      box-shadow: inset 0 10px 24px rgba(36,107,255,.05) !important;
    }

    .page {
      box-shadow: 0 28px 62px rgba(40,58,94,.18) !important;
    }

    .worksheet-canvas {
      border-color: rgba(122,151,196,.24);
    }

    .card-kicker,
    .related-card .cta {
      color: var(--glass-blue-dark) !important;
    }

    .info-card,
    .faq-card,
    .related-card,
    .guide-card {
      position: relative;
      overflow: hidden;
    }

    .info-card::before,
    .faq-card::before,
    .related-card::before,
    .guide-card::before {
      content: "";
      position: absolute;
      inset: 0;
      background: radial-gradient(circle at var(--mx, 50%) var(--my, 20%), rgba(36,107,255,.13), transparent 36%);
      opacity: 0;
      transition: opacity .2s ease;
      pointer-events: none;
    }

    .info-card:hover::before,
    .faq-card:hover::before,
    .related-card:hover::before,
    .guide-card:hover::before {
      opacity: 1;
    }

    .info-card:hover,
    .faq-card:hover,
    .related-card:hover,
    .guide-card:hover,
    .mini-card:hover {
      transform: translateY(-4px);
      border-color: rgba(36,107,255,.20) !important;
    }

    .scissor-stage {
      min-height: 450px;
      position: relative;
      overflow: hidden;
      background:
        radial-gradient(circle at 74% 12%, rgba(95,215,255,.22), transparent 32%),
        radial-gradient(circle at 14% 88%, rgba(255,140,90,.13), transparent 38%),
        rgba(255,255,255,.62) !important;
    }

    .stage-orbit {
      position: absolute;
      border-radius: 999px;
      border: 1px dashed rgba(36,107,255,.18);
      animation: slowSpin 18s linear infinite;
    }

    .stage-orbit-one {
      width: 280px;
      height: 280px;
      right: -110px;
      top: -80px;
    }

    .stage-orbit-two {
      width: 220px;
      height: 220px;
      left: -90px;
      bottom: -80px;
      animation-direction: reverse;
      animation-duration: 22s;
    }

    .paper-stack {
      position: relative;
      min-height: 318px;
      margin: 6px 0 16px;
      perspective: 1000px;
    }

    .paper-card {
      position: absolute;
      left: 50%;
      top: 20px;
      width: min(86%, 450px);
      height: 284px;
      border-radius: 26px;
      border: 1px solid rgba(122,151,196,.18);
      background: rgba(255,255,255,.84);
      box-shadow: 0 24px 60px rgba(40,58,94,.15);
      transform: translateX(-50%);
    }

    .paper-back {
      transform: translateX(-52%) translateY(18px) rotate(-5deg);
      opacity: .72;
    }

    .paper-mid {
      transform: translateX(-47%) translateY(9px) rotate(5deg);
      opacity: .86;
    }

    .paper-front {
      padding: 18px;
      animation: paperFloat 5.6s ease-in-out infinite;
    }

    .paper-topline {
      display: flex;
      gap: 8px;
      margin-bottom: 8px;
    }

    .paper-topline .dot {
      width: 10px;
      height: 10px;
      border-radius: 999px;
      display: inline-block;
    }

    .dot.red { background: #ff8c5a; }
    .dot.blue { background: #2f7cff; }
    .dot.green { background: #4fb3a9; }

    .cutting-svg {
      width: 100%;
      height: 232px;
      display: block;
    }

    .soft-ruler {
      stroke: rgba(80,96,120,.18);
      stroke-width: 3;
      stroke-linecap: round;
    }

    .cut-path {
      fill: none;
      stroke: url(#cutLineGradient);
      stroke-width: 8;
      stroke-linecap: round;
      stroke-dasharray: 16 14;
    }

    .animated-path {
      stroke-dashoffset: 240;
      animation: dashMove 2.2s linear infinite;
    }

    .cut-shadow {
      fill: none;
      stroke: rgba(36,107,255,.08);
      stroke-width: 26;
      stroke-linecap: round;
    }

    .scissor-icon {
      transform-origin: 160px 210px;
      animation: scissorCut 2.4s ease-in-out infinite;
    }

    .scissor-icon circle,
    .scissor-icon path {
      fill: none;
      stroke: #17233f;
      stroke-width: 8;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .shape-dots circle {
      fill: #fff;
      stroke: #2f7cff;
      stroke-width: 4;
      animation: dotPulse 1.8s ease-in-out infinite;
    }

    .shape-dots circle:nth-child(2) { animation-delay: .12s; }
    .shape-dots circle:nth-child(3) { animation-delay: .24s; }
    .shape-dots circle:nth-child(4) { animation-delay: .36s; }
    .shape-dots circle:nth-child(5) { animation-delay: .48s; }
    .shape-dots circle:nth-child(6) { animation-delay: .60s; }

    .scissor-feature-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
      position: relative;
      z-index: 2;
    }

    .scissor-feature-card {
      border: 1px solid rgba(255,255,255,.72);
      border-radius: 22px;
      background: rgba(255,255,255,.56);
      padding: 14px;
      display: grid;
      gap: 12px;
      min-height: 100px;
      box-shadow: 0 14px 34px rgba(40,58,94,.08);
      animation: cardBob 5s ease-in-out infinite;
    }

    .scissor-feature-card:nth-child(2) {
      animation-delay: .8s;
    }

    .feature-line {
      height: 9px;
      border-radius: 999px;
      background: linear-gradient(90deg, rgba(47,124,255,.24), rgba(255,140,90,.20));
      overflow: hidden;
      position: relative;
    }

    .feature-line::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent);
      transform: translateX(-120%);
      animation: shimmerLine 2.6s ease-in-out infinite;
    }

    .feature-line-long { width: 92%; }
    .feature-line-mid { width: 64%; }

    .small-animated-path {
      fill: none;
      stroke: #2f7cff;
      stroke-width: 6;
      stroke-linecap: round;
      stroke-dasharray: 12 10;
      animation: dashMove 2.4s linear infinite;
    }

    .mini-card,
    .panel,
    .preview-panel,
    .section-card,
    .info-card,
    .faq-card,
    .guide-card,
    .related-card {
      transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
    }

    /* Scroll effects are progressive enhancement; core content is visible by default. */
    .reveal-on-scroll {
      opacity: 1;
      transform: none;
    }

    .reveal-on-scroll.is-visible {
      opacity: 1;
      transform: none;
    }

    .back-to-top {
      position: fixed;
      right: 24px;
      bottom: 24px;
      width: 46px;
      height: 46px;
      border: 1px solid rgba(122,151,196,.22);
      border-radius: 999px;
      background: rgba(255,255,255,.82);
      color: var(--glass-blue-dark);
      box-shadow: 0 18px 42px rgba(40,58,94,.16);
      backdrop-filter: blur(14px);
      z-index: 80;
      cursor: pointer;
      opacity: 0;
      transform: translateY(14px);
      pointer-events: none;
      transition: opacity .2s ease, transform .2s ease;
      font-weight: 950;
      font-size: 1.2rem;
    }

    .back-to-top.show {
      opacity: 1;
      transform: translateY(0);
      pointer-events: auto;
    }

    footer {
      border-top: 1px solid rgba(122,151,196,.16);
      background: rgba(255,255,255,.42);
    }

    @keyframes slowSpin {
      to { transform: rotate(360deg); }
    }

    @keyframes paperFloat {
      0%, 100% { transform: translateX(-50%) translateY(0) rotate(0deg); }
      50% { transform: translateX(-50%) translateY(-10px) rotate(-1deg); }
    }

    @keyframes dashMove {
      to { stroke-dashoffset: 0; }
    }

    @keyframes scissorCut {
      0%, 100% { transform: translate(0,0) rotate(-5deg); }
      42% { transform: translate(68px,-46px) rotate(8deg); }
      62% { transform: translate(90px,-62px) rotate(-2deg); }
    }

    @keyframes dotPulse {
      0%, 100% { transform: scale(1); opacity: .88; }
      45% { transform: scale(1.45); opacity: 1; }
    }

    @keyframes cardBob {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-6px); }
    }

    @keyframes shimmerLine {
      0% { transform: translateX(-120%); }
      58%, 100% { transform: translateX(120%); }
    }

    @media (min-width: 1025px) {
      .layout {
        grid-template-columns: minmax(340px, 420px) minmax(0, 1fr);
      }

      .panel {
        top: 92px;
      }
    }

    @media (max-width: 1120px) {
      .nav {
        grid-template-columns: auto 1fr;
      }
      .nav-links {
        grid-column: 1 / -1;
        justify-content: flex-start;
        order: 3;
      }
      .nav-actions {
        justify-content: flex-end;
      }
    }

    @media (max-width: 820px) {
      .page-wrap {
        width: calc(100% - 16px);
        margin-top: 8px;
        border-radius: 26px;
      }
      .container {
        width: calc(100% - 24px);
      }
      .topbar {
        padding-top: 12px;
      }
      .nav {
        grid-template-columns: 1fr;
        justify-items: start;
      }
      .nav-links,
      .nav-actions {
        width: 100%;
        justify-content: flex-start;
      }
      .hero > .container {
        padding: 20px;
      }
      .scissor-stage {
        min-height: 390px;
      }
      .paper-card {
        width: 94%;
        height: 260px;
      }
      .scissor-feature-grid {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 640px) {
      .nav-links {
        gap: 2px;
      }
      .nav-links a {
        font-size: .8rem;
        padding-inline: 8px;
      }
      .nav-actions {
        flex-wrap: wrap;
      }
      .paper-stack {
        min-height: 286px;
      }
      .paper-card {
        height: 240px;
      }
      .cutting-svg {
        height: 190px;
      }
      .back-to-top {
        right: 14px;
        bottom: 14px;
      }
    }

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

  

    /* Clear scissor animation v2: one unmistakable cutting demo */
    .clear-cut-stage {
      min-height: 468px;
      position: relative;
      overflow: hidden;
      padding: clamp(18px, 2.4vw, 26px) !important;
      background:
        radial-gradient(circle at 84% 8%, rgba(95,215,255,.24), transparent 32%),
        radial-gradient(circle at 8% 88%, rgba(255,140,90,.16), transparent 38%),
        rgba(255,255,255,.72) !important;
    }

    .clear-cut-stage::before,
    .clear-cut-stage::after {
      content: "";
      position: absolute;
      border-radius: 999px;
      pointer-events: none;
      z-index: 0;
    }

    .clear-cut-stage::before {
      width: 260px;
      height: 260px;
      right: -100px;
      top: -98px;
      border: 1px dashed rgba(36,107,255,.18);
      animation: clearSpin 20s linear infinite;
    }

    .clear-cut-stage::after {
      width: 220px;
      height: 220px;
      left: -92px;
      bottom: -100px;
      background: radial-gradient(circle, rgba(255,140,90,.10), transparent 66%);
    }

    .cut-stage-caption {
      position: relative;
      z-index: 2;
      display: inline-flex;
      align-items: center;
      gap: 9px;
      min-height: 34px;
      padding: 0 13px;
      border-radius: 999px;
      border: 1px solid rgba(122,151,196,.20);
      background: rgba(255,255,255,.72);
      color: var(--glass-blue-dark, #1555d5);
      font-size: .84rem;
      font-weight: 950;
      box-shadow: 0 12px 28px rgba(40,58,94,.08);
    }

    .caption-dot {
      width: 9px;
      height: 9px;
      border-radius: 999px;
      background: #ff8c5a;
      box-shadow: 0 0 0 5px rgba(255,140,90,.14);
      animation: captionPulse 1.4s ease-in-out infinite;
    }

    .cut-page-demo {
      position: relative;
      z-index: 2;
      margin-top: 16px;
      border: 1px solid rgba(122,151,196,.20);
      border-radius: 30px;
      background:
        linear-gradient(180deg, rgba(255,255,255,.94), rgba(250,253,255,.86)),
        #fff;
      box-shadow: 0 26px 66px rgba(40,58,94,.16);
      padding: clamp(16px, 2vw, 22px);
      animation: cutPaperFloat 5.8s ease-in-out infinite;
    }

    .cut-page-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 16px;
      padding: 12px 14px;
      border-radius: 18px;
      background: rgba(36,107,255,.07);
      border: 1px solid rgba(36,107,255,.10);
    }

    .cut-page-header strong {
      display: block;
      color: var(--glass-ink, #17233f);
      font-size: 1rem;
      line-height: 1.15;
      letter-spacing: -.02em;
    }

    .cut-page-header span {
      display: block;
      color: var(--glass-ink-soft, #506078);
      font-size: .8rem;
      font-weight: 800;
      margin-top: 2px;
    }

    .cut-page-header em {
      font-style: normal;
      display: inline-grid;
      place-items: center;
      min-width: 46px;
      min-height: 32px;
      padding: 0 10px;
      border-radius: 999px;
      background: #fff;
      color: #ff8c5a;
      font-weight: 950;
      box-shadow: 0 10px 22px rgba(40,58,94,.08);
    }

    .cut-strip-demo {
      position: relative;
      min-height: 178px;
      border-radius: 24px;
      border: 2px dashed rgba(255,140,90,.28);
      background:
        repeating-linear-gradient(0deg, transparent 0 31px, rgba(36,107,255,.04) 32px 33px),
        linear-gradient(180deg, #fff 0%, #fff9f4 100%);
      overflow: hidden;
    }

    .start-label,
    .finish-label {
      position: absolute;
      top: 18px;
      z-index: 3;
      min-height: 26px;
      display: inline-flex;
      align-items: center;
      padding: 0 10px;
      border-radius: 999px;
      background: rgba(255,255,255,.86);
      border: 1px solid rgba(122,151,196,.20);
      font-size: .68rem;
      font-weight: 950;
      color: var(--glass-ink-soft, #506078);
      letter-spacing: .07em;
    }

    .start-label { left: 20px; }
    .finish-label { right: 20px; }

    .cut-guide-line,
    .cut-progress-line {
      position: absolute;
      left: 40px;
      right: 40px;
      top: 86px;
      height: 0;
      border-radius: 999px;
    }

    .cut-guide-line {
      border-top: 7px dashed #ff8c5a;
      filter: drop-shadow(0 8px 14px rgba(255,140,90,.14));
      animation: clearDashFlow 1.15s linear infinite;
    }

    .cut-progress-line {
      left: 40px;
      right: auto;
      width: 0;
      height: 7px;
      background: linear-gradient(90deg, #2f7cff, #ff8c5a);
      top: 83px;
      box-shadow: 0 10px 22px rgba(36,107,255,.16);
      animation: clearCutProgress 4.2s ease-in-out infinite;
    }

    .animated-scissors {
      position: absolute;
      left: 22px;
      top: 46px;
      width: 112px;
      height: 84px;
      z-index: 5;
      filter: drop-shadow(0 14px 20px rgba(23,35,63,.20));
      animation: clearScissorTravel 4.2s ease-in-out infinite;
    }

    .animated-scissors svg {
      width: 100%;
      height: 100%;
      overflow: visible;
    }

    .scissor-handle,
    .pivot,
    .scissor-joint {
      fill: #fff;
      stroke: #17233f;
      stroke-width: 6;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .pivot { fill: #ff8c5a; stroke-width: 4; }
    .scissor-joint { fill: none; }

    .blade {
      fill: #f8fbff;
      stroke: #17233f;
      stroke-width: 5;
      stroke-linejoin: round;
      transform-box: fill-box;
      transform-origin: 0% 50%;
    }

    .upper-blade { animation: clearBladeUpper .52s ease-in-out infinite alternate; }
    .lower-blade { animation: clearBladeLower .52s ease-in-out infinite alternate; }

    .cut-chip {
      position: absolute;
      z-index: 2;
      width: 18px;
      height: 18px;
      clip-path: polygon(50% 0, 100% 100%, 0 100%);
      background: rgba(47,124,255,.20);
      opacity: 0;
      animation: cutChipFall 4.2s ease-in-out infinite;
    }

    .chip-one { left: 34%; top: 98px; animation-delay: .95s; }
    .chip-two { left: 56%; top: 98px; background: rgba(255,140,90,.22); animation-delay: 1.85s; }
    .chip-three { left: 76%; top: 98px; animation-delay: 2.8s; }

    .clear-practice-row {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
      margin-top: 14px;
    }

    .practice-mini {
      min-height: 96px;
      border: 1px solid rgba(122,151,196,.18);
      border-radius: 22px;
      background: rgba(255,255,255,.64);
      padding: 12px;
      display: grid;
      align-content: space-between;
      box-shadow: 0 14px 32px rgba(40,58,94,.08);
      transition: transform .18s ease, border-color .18s ease, background .18s ease;
    }

    .practice-mini:hover,
    .practice-mini.active {
      transform: translateY(-3px);
      border-color: rgba(36,107,255,.22);
      background: rgba(255,255,255,.86);
    }

    .mini-dash.straight {
      height: 0;
      border-top: 6px dashed #ff8c5a;
      border-radius: 999px;
      margin: 18px 4px 8px;
      animation: clearDashFlow 1.2s linear infinite;
    }

    .mini-dash-path {
      fill: none;
      stroke: #2f7cff;
      stroke-width: 6;
      stroke-linecap: round;
      stroke-dasharray: 11 9;
      animation: clearDashFlow 1.3s linear infinite;
    }

    .mini-shape-demo {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 9px;
      margin-top: 12px;
    }

    .mini-shape-demo span {
      width: 28px;
      height: 28px;
      border: 3px dashed #2f7cff;
      background: rgba(47,124,255,.06);
      animation: shapePulseClear 2s ease-in-out infinite;
    }

    .mini-shape-demo span:nth-child(1) { border-radius: 999px; }
    .mini-shape-demo span:nth-child(2) { border-radius: 8px; animation-delay: .18s; }
    .mini-shape-demo span:nth-child(3) {
      width: 0;
      height: 0;
      border-left: 16px solid transparent;
      border-right: 16px solid transparent;
      border-bottom: 29px dashed #2f7cff;
      border-top: 0;
      background: transparent;
      animation-delay: .36s;
    }

    @keyframes clearDashFlow {
      to { stroke-dashoffset: -48; border-top-color: #ff8c5a; }
    }

    @keyframes clearCutProgress {
      0%, 12% { width: 0; opacity: .35; }
      68% { width: calc(100% - 80px); opacity: 1; }
      88%, 100% { width: calc(100% - 80px); opacity: .16; }
    }

    @keyframes clearScissorTravel {
      0%, 10% { transform: translateX(0) rotate(-2deg); }
      68% { transform: translateX(calc(100% - 154px)) rotate(0deg); }
      88%, 100% { transform: translateX(calc(100% - 154px)) rotate(2deg); }
    }

    @keyframes clearBladeUpper {
      from { transform: rotate(-8deg); }
      to { transform: rotate(9deg); }
    }

    @keyframes clearBladeLower {
      from { transform: rotate(8deg); }
      to { transform: rotate(-9deg); }
    }

    @keyframes cutChipFall {
      0%, 32% { transform: translateY(0) rotate(0deg); opacity: 0; }
      44% { opacity: 1; }
      70%, 100% { transform: translateY(42px) rotate(44deg); opacity: 0; }
    }

    @keyframes cutPaperFloat {
      0%, 100% { transform: translateY(0) rotate(-.4deg); }
      50% { transform: translateY(-8px) rotate(.5deg); }
    }

    @keyframes captionPulse {
      0%,100% { transform: scale(1); opacity: 1; }
      50% { transform: scale(.76); opacity: .65; }
    }

    @keyframes clearSpin {
      to { transform: rotate(360deg); }
    }

    @keyframes shapePulseClear {
      0%, 100% { transform: scale(1); opacity: 1; }
      50% { transform: scale(1.08); opacity: .72; }
    }

    @media (max-width: 700px) {
      .clear-practice-row { grid-template-columns: 1fr; }
      .cut-strip-demo { min-height: 160px; }
      .animated-scissors { width: 92px; height: 70px; top: 54px; }
      .cut-guide-line,
      .cut-progress-line { left: 28px; right: 28px; }
      @keyframes clearScissorTravel {
        0%, 10% { transform: translateX(0) rotate(-2deg); }
        68% { transform: translateX(calc(100% - 120px)) rotate(0deg); }
        88%, 100% { transform: translateX(calc(100% - 120px)) rotate(2deg); }
      }
    }

  

    /* v3: larger, unmistakable scissors illustration */
    .cut-strip-demo.v3-real-scissors {
      min-height: 285px !important;
      border: 2px dashed rgba(36,107,255,.20) !important;
      background:
        radial-gradient(circle at 18% 30%, rgba(255,140,90,.12), transparent 30%),
        repeating-linear-gradient(0deg, transparent 0 34px, rgba(36,107,255,.045) 35px 36px),
        linear-gradient(180deg, #fff 0%, #f9fcff 100%) !important;
      overflow: hidden;
    }

    .cut-path-sheet {
      position: absolute;
      left: 24px;
      right: 24px;
      bottom: 42px;
      width: calc(100% - 48px);
      height: 190px;
      z-index: 1;
      overflow: visible;
    }

    .wide-guide-band,
    .wide-progress-band {
      fill: none;
      stroke-linecap: round;
      stroke-linejoin: round;
      filter: url(#pathShadow);
    }

    .wide-guide-band {
      stroke: #ff8c5a;
      stroke-width: 11;
      stroke-dasharray: 18 15;
      animation: clearDashFlow 1.35s linear infinite;
    }

    .wide-progress-band {
      stroke: rgba(47,124,255,.72);
      stroke-width: 6;
      stroke-dasharray: 760;
      stroke-dashoffset: 760;
      animation: v3CutPathDraw 4.8s ease-in-out infinite;
    }

    .big-scissor-wrap {
      position: absolute;
      left: 34px;
      top: 54px;
      width: 220px;
      height: 150px;
      z-index: 5;
      filter: drop-shadow(0 18px 22px rgba(23,35,63,.24));
      animation: v3ScissorMove 4.8s ease-in-out infinite;
      transform-origin: center;
    }

    .big-scissor-svg {
      width: 100%;
      height: 100%;
      overflow: visible;
    }

    .handle-ring,
    .handle-hole,
    .handle-neck,
    .scissor-blade,
    .blade-highlight,
    .pivot-outer,
    .pivot-inner {
      vector-effect: non-scaling-stroke;
    }

    .handle-ring {
      stroke: #17233f;
      stroke-width: 7;
    }

    .handle-ring.blue { fill: url(#handleBlue); }
    .handle-ring.orange { fill: url(#handleOrange); }

    .handle-hole {
      fill: rgba(255,255,255,.96);
      stroke: #17233f;
      stroke-width: 5;
    }

    .handle-neck {
      fill: none;
      stroke: #17233f;
      stroke-width: 8;
      stroke-linecap: round;
    }

    .blade-pair {
      transform-box: view-box;
      transform-origin: 112px 75px;
    }

    .upper-blade-real { animation: v3BladeUpper .72s ease-in-out infinite alternate; }
    .lower-blade-real { animation: v3BladeLower .72s ease-in-out infinite alternate; }

    .scissor-blade {
      fill: url(#bladeSilver);
      stroke: #17233f;
      stroke-width: 6;
      stroke-linejoin: round;
    }

    .blade-highlight {
      fill: none;
      stroke: rgba(255,255,255,.88);
      stroke-width: 4;
      stroke-linecap: round;
    }

    .pivot-outer {
      fill: #ff8c5a;
      stroke: #17233f;
      stroke-width: 6;
    }

    .pivot-inner { fill: #fff; stroke: none; }

    .scissor-label-badge {
      position: absolute;
      left: 26px;
      bottom: 18px;
      z-index: 6;
      display: inline-flex;
      align-items: center;
      gap: 9px;
      min-height: 34px;
      padding: 0 14px;
      border-radius: 999px;
      background: rgba(255,255,255,.9);
      border: 1px solid rgba(122,151,196,.20);
      box-shadow: 0 12px 26px rgba(40,58,94,.10);
      color: #17233f;
      font-size: .82rem;
    }

    .scissor-label-icon {
      display: inline-grid;
      place-items: center;
      width: 25px;
      height: 25px;
      border-radius: 999px;
      background: rgba(255,140,90,.13);
      color: #ff7a3d;
      font-size: 1rem;
      line-height: 1;
    }

    .cut-strip-demo.v3-real-scissors .cut-chip {
      top: 164px !important;
      z-index: 4;
    }

    .cut-strip-demo.v3-real-scissors .chip-one { left: 38%; }
    .cut-strip-demo.v3-real-scissors .chip-two { left: 58%; }
    .cut-strip-demo.v3-real-scissors .chip-three { left: 78%; }

    @keyframes v3ScissorMove {
      0%, 12% { transform: translateX(0) translateY(0) rotate(-7deg); }
      46% { transform: translateX(calc(50vw - 220px)) translateY(8px) rotate(-2deg); }
      72% { transform: translateX(calc(100vw - 410px)) translateY(0) rotate(3deg); }
      88%, 100% { transform: translateX(calc(100vw - 410px)) translateY(0) rotate(3deg); }
    }

    @keyframes v3BladeUpper {
      from { transform: rotate(-9deg); }
      to { transform: rotate(8deg); }
    }

    @keyframes v3BladeLower {
      from { transform: rotate(8deg); }
      to { transform: rotate(-8deg); }
    }

    @keyframes v3CutPathDraw {
      0%, 14% { stroke-dashoffset: 760; opacity: .2; }
      72% { stroke-dashoffset: 0; opacity: 1; }
      88%, 100% { stroke-dashoffset: 0; opacity: .25; }
    }

    @media (max-width: 820px) {
      .cut-strip-demo.v3-real-scissors { min-height: 245px !important; }
      .big-scissor-wrap { width: 176px; height: 120px; top: 60px; left: 20px; }
      .cut-path-sheet { bottom: 34px; height: 155px; }
      @keyframes v3ScissorMove {
        0%, 12% { transform: translateX(0) translateY(0) rotate(-7deg); }
        60% { transform: translateX(calc(100vw - 280px)) translateY(2px) rotate(2deg); }
        88%, 100% { transform: translateX(calc(100vw - 280px)) translateY(2px) rotate(2deg); }
      }
    }

    @media (max-width: 520px) {
      .cut-strip-demo.v3-real-scissors { min-height: 230px !important; }
      .big-scissor-wrap { width: 150px; height: 102px; top: 72px; }
      .start-label, .finish-label { top: 14px; }
      .scissor-label-badge { left: 16px; bottom: 12px; font-size: .76rem; }
    }


/* v4: clean worksheet-path animation, no top progress bar, no scissors illustration */
.page-progress { display: none !important; }
.worksheet-flow-stage {
  min-height: 468px;
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 2.4vw, 26px) !important;
  background:
    radial-gradient(circle at 86% 8%, rgba(95,215,255,.22), transparent 34%),
    radial-gradient(circle at 8% 88%, rgba(255,140,90,.14), transparent 38%),
    rgba(255,255,255,.72) !important;
}
.worksheet-flow-stage::before,
.worksheet-flow-stage::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
}
.worksheet-flow-stage::before {
  width: 260px;
  height: 260px;
  right: -100px;
  top: -96px;
  border: 1px dashed rgba(36,107,255,.16);
  animation: slowRotate 24s linear infinite;
}
.worksheet-flow-stage::after {
  width: 220px;
  height: 220px;
  left: -88px;
  bottom: -96px;
  background: radial-gradient(circle, rgba(255,140,90,.10), transparent 66%);
}
.worksheet-stage-caption {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(122,151,196,.20);
  background: rgba(255,255,255,.74);
  color: var(--glass-blue-dark, #1555d5);
  font-size: .84rem;
  font-weight: 950;
  box-shadow: 0 12px 28px rgba(40,58,94,.08);
}
.worksheet-stack-demo {
  position: relative;
  z-index: 2;
  min-height: 314px;
  margin-top: 16px;
}
.floating-sheet {
  position: absolute;
  inset: 18px 18px auto auto;
  width: calc(100% - 58px);
  height: 250px;
  border: 1px solid rgba(122,151,196,.16);
  border-radius: 30px;
  background: rgba(255,255,255,.48);
  box-shadow: 0 18px 44px rgba(40,58,94,.08);
}
.sheet-back-one { transform: translate(-14px, 18px) rotate(-2.2deg); animation: sheetBackOne 6s ease-in-out infinite; }
.sheet-back-two { transform: translate(4px, 34px) rotate(2.6deg); opacity: .72; animation: sheetBackTwo 7s ease-in-out infinite; }
.worksheet-card-demo {
  position: relative;
  z-index: 2;
  border: 1px solid rgba(122,151,196,.20);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(250,253,255,.88)), #fff;
  box-shadow: 0 26px 66px rgba(40,58,94,.16);
  padding: clamp(16px, 2vw, 22px);
  animation: cutPaperFloat 5.8s ease-in-out infinite;
}
.worksheet-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(36,107,255,.07);
  border: 1px solid rgba(36,107,255,.10);
}
.worksheet-card-head strong {
  display: block;
  color: var(--glass-ink, #17233f);
  font-size: 1rem;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.worksheet-card-head span {
  display: block;
  color: var(--glass-ink-soft, #506078);
  font-size: .8rem;
  font-weight: 800;
  margin-top: 2px;
}
.worksheet-card-head em {
  font-style: normal;
  display: inline-grid;
  place-items: center;
  min-width: 46px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff;
  color: #ff8c5a;
  font-weight: 950;
  box-shadow: 0 10px 22px rgba(40,58,94,.08);
}
.path-demo-board {
  position: relative;
  min-height: 220px;
  border-radius: 24px;
  border: 2px dashed rgba(36,107,255,.18);
  background:
    repeating-linear-gradient(0deg, transparent 0 34px, rgba(36,107,255,.045) 35px 36px),
    linear-gradient(180deg, #fff 0%, #fff9f4 100%);
  overflow: hidden;
}
.path-demo-svg {
  position: absolute;
  inset: 20px 20px 18px;
  width: calc(100% - 40px);
  height: calc(100% - 38px);
  overflow: visible;
}
.demo-guide,
.demo-draw {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: url(#softPathShadow);
}
.demo-guide {
  stroke: #ff8c5a;
  stroke-width: 10;
  stroke-dasharray: 18 14;
  animation: pathDashFlow 1.35s linear infinite;
}
.demo-draw {
  stroke: rgba(47,124,255,.82);
  stroke-width: 5.5;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: pathDraw 4.6s ease-in-out infinite;
}
.draw-wave { animation-delay: .6s; }
.draw-shape { animation-delay: 1.2s; }
.demo-dot-row circle {
  fill: #fff;
  stroke: #246bff;
  stroke-width: 4;
  transform-origin: center;
  animation: dotPop 2.4s ease-in-out infinite;
}
.demo-dot-row circle:nth-child(2) { animation-delay: .28s; }
.demo-dot-row circle:nth-child(3) { animation-delay: .56s; }
.demo-dot-row circle:nth-child(4) { animation-delay: .84s; }
.path-scan-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -30%;
  width: 26%;
  background: linear-gradient(90deg, transparent, rgba(95,215,255,.12), transparent);
  transform: skewX(-14deg);
  animation: scanAcross 4.6s ease-in-out infinite;
}
.board-label {
  position: absolute;
  z-index: 4;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(122,151,196,.20);
  font-size: .68rem;
  font-weight: 950;
  color: var(--glass-ink-soft, #506078);
  letter-spacing: .07em;
}
.label-start { left: 22px; top: 18px; }
.label-finish { right: 22px; top: 18px; }
.worksheet-mode-row {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.mode-mini {
  min-height: 86px;
  border: 1px solid rgba(122,151,196,.18);
  border-radius: 22px;
  background: rgba(255,255,255,.62);
  padding: 12px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 9px;
  box-shadow: 0 14px 32px rgba(40,58,94,.08);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.mode-mini:hover,
.mode-mini.active {
  transform: translateY(-3px);
  border-color: rgba(36,107,255,.24);
  background: rgba(255,255,255,.88);
}
.mode-mini strong {
  color: var(--glass-ink, #17233f);
  font-size: .84rem;
}
.mode-mini svg {
  width: 80px;
  height: 28px;
}
.mode-mini svg path {
  fill: none;
  stroke: #2f7cff;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 11 9;
  animation: pathDashFlow 1.4s linear infinite;
}
.mode-icon.line-icon {
  display: block;
  width: 74px;
  border-top: 6px dashed #ff8c5a;
  border-radius: 999px;
  animation: pathDashFlow 1.3s linear infinite;
}
.mode-icon.shape-icon {
  display: block;
  width: 44px;
  height: 34px;
  border: 5px dashed #2f7cff;
  border-radius: 12px;
  animation: shapePulseClear 2s ease-in-out infinite;
}
@keyframes pathDraw {
  0%, 20% { stroke-dashoffset: 900; opacity: 0; }
  38%, 72% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes pathDashFlow { to { stroke-dashoffset: -34; } }
@keyframes scanAcross {
  0%, 12% { left: -32%; opacity: 0; }
  28% { opacity: 1; }
  78%, 100% { left: 108%; opacity: 0; }
}
@keyframes sheetBackOne {
  0%, 100% { transform: translate(-14px, 18px) rotate(-2.2deg); }
  50% { transform: translate(-20px, 10px) rotate(-1.2deg); }
}
@keyframes sheetBackTwo {
  0%, 100% { transform: translate(4px, 34px) rotate(2.6deg); }
  50% { transform: translate(10px, 26px) rotate(1.4deg); }
}
@keyframes dotPop {
  0%, 100% { transform: scale(1); opacity: .9; }
  50% { transform: scale(1.23); opacity: 1; }
}
@media (max-width: 700px) {
  .worksheet-mode-row { grid-template-columns: 1fr; }
  .worksheet-stack-demo { min-height: 300px; }
  .path-demo-board { min-height: 190px; }
}
@media (prefers-reduced-motion: reduce) {
  .floating-sheet,
  .worksheet-card-demo,
  .demo-guide,
  .demo-draw,
  .path-scan-bar,
  .demo-dot-row circle,
  .mode-icon,
  .mode-mini svg path { animation: none !important; }
}


/* v5: compact unified top navigation height */
.topbar {
  padding: 10px 0 6px !important;
}
.nav {
  min-height: 46px !important;
  padding: 6px 8px 6px 12px !important;
  gap: 14px !important;
  border-radius: 24px !important;
}
.brand-logo {
  width: 36px !important;
  height: 36px !important;
  border-radius: 13px !important;
}
.brand span {
  font-size: .98rem !important;
}
.nav-links a {
  min-height: 32px !important;
  padding: 0 9px !important;
  font-size: .81rem !important;
}
.nav-actions {
  gap: 7px !important;
}
.lang-switch {
  height: 34px !important;
  min-width: 94px !important;
  max-width: 106px !important;
  padding: 0 9px !important;
  font-size: .82rem !important;
}
.nav-actions .btn,
.nav .btn-primary {
  min-height: 36px !important;
  padding: 0 13px !important;
  font-size: .86rem !important;
}
@media (max-width: 820px) {
  .topbar { padding: 8px 0 5px !important; }
  .nav { padding: 8px 10px !important; gap: 8px !important; }
  .nav-links a { min-height: 30px !important; padding-inline: 8px !important; }
}



/* v6: reduce the gap between page top and unified navigation */
.page-wrap {
  margin-top: 6px !important;
}
.topbar {
  padding: 4px 0 4px !important;
}
.nav {
  min-height: 44px !important;
  padding: 5px 8px 5px 12px !important;
}
@media (max-width: 820px) {
  .page-wrap { margin-top: 4px !important; }
  .topbar { padding: 4px 0 4px !important; }
  .nav { padding: 6px 10px !important; }
}


/* v7: restore homepage-matched navigation inner spacing.
   The previous compact overrides made the menu sit visually off-center inside the nav shell. */
.topbar {
  position: relative !important;
  top: auto !important;
  z-index: 10 !important;
  padding: 18px 0 8px !important;
  background: transparent !important;
  border: 0 !important;
  backdrop-filter: none !important;
}
.nav {
  min-height: 52px !important;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 18px !important;
  padding: 9px 10px 9px 14px !important;
  border: 1px solid rgba(255,255,255,.76) !important;
  border-radius: 26px !important;
  background: rgba(255,255,255,.58) !important;
  box-shadow: 0 12px 34px rgba(52,80,128,.10) !important;
  backdrop-filter: blur(18px) !important;
}
.brand-logo {
  width: 38px !important;
  height: 38px !important;
  border-radius: 14px !important;
}
.brand span {
  font-size: 1rem !important;
}
.nav-links {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  min-width: 0 !important;
  flex-wrap: wrap !important;
}
.nav-links a {
  min-height: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  font-size: .82rem !important;
  font-weight: 850 !important;
  line-height: 1 !important;
}
.nav-actions {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
}
.lang-switch {
  height: 36px !important;
  min-width: 96px !important;
  max-width: 108px !important;
  padding: 0 10px !important;
  font-size: .84rem !important;
}
.nav-actions .btn,
.nav .btn-primary {
  min-height: 42px !important;
  padding: 0 15px !important;
  font-size: .92rem !important;
}
@media (max-width: 820px) {
  .page-wrap { margin-top: 8px !important; border-radius: 26px !important; }
  .topbar { padding: 12px 0 8px !important; }
  .nav { grid-template-columns: 1fr !important; justify-items: start !important; padding: 10px 12px !important; gap: 8px !important; }
  .nav-links, .nav-actions { width: 100% !important; justify-content: flex-start !important; }
  .nav-links a { min-height: 34px !important; padding: 0 9px !important; }
}


    /* Function-merged animal cutout controls. This keeps the original scissor generator and moves the animal generator function into the same page. */
    .tool-mode-tabs {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
      padding: 6px;
      margin: 0 0 18px;
      border: 1px solid var(--line);
      border-radius: 18px;
      background: #fff8f4;
    }

    .tool-mode-btn {
      min-height: 46px;
      border: 0;
      border-radius: 14px;
      background: transparent;
      color: var(--muted);
      font-weight: 800;
      cursor: pointer;
      transition: transform .18s ease, background .18s ease, color .18s ease;
    }

    .tool-mode-btn:hover { transform: translateY(-1px); }

    .tool-mode-btn.active {
      background: var(--primary);
      color: #fff;
      box-shadow: 0 10px 22px rgba(255, 140, 90, .2);
    }

    .animal-function-root.hidden,
    .animal-preview-root.hidden,
    .line-mode-hidden { display: none !important; }

    .animal-function-root { display: grid; gap: 18px; }

    .selected-animal-name {
      color: var(--secondary-dark);
      font-size: .82rem;
      font-weight: 800;
    }

    .asset-library-status {
      margin: 0 0 12px;
      border: 1px solid var(--line);
      background: #fffaf6;
      color: var(--muted);
      border-radius: 16px;
      padding: 10px 12px;
      font-size: 12px;
      line-height: 1.5;
      font-weight: 700;
    }

    .asset-library-status.success {
      background: #ecfdf5;
      border-color: #a7f3d0;
      color: #0f766e;
    }

    .asset-library-status.warning {
      background: #fff7ed;
      border-color: #fed7aa;
      color: #c2410c;
    }

    .asset-category-control,
    .asset-modal-category-wrap {
      display: grid;
      gap: 8px;
      margin-bottom: 12px;
    }

    .asset-category-label {
      font-size: 12px;
      font-weight: 800;
      color: var(--muted);
    }

    .asset-category-select {
      width: 100%;
      min-height: 44px;
      border: 1px solid var(--line);
      background: #fff;
      color: var(--text);
      border-radius: 14px;
      padding: 0 12px;
      font-size: 14px;
      font-weight: 800;
      outline: none;
    }

    .animal-selector,
    .asset-modal-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }

    .animal-card,
    .asset-modal-item {
      min-width: 0;
      border: 2px solid var(--line);
      border-radius: 18px;
      background: #fff;
      padding: 10px;
      text-align: center;
      cursor: pointer;
      transition: transform .18s ease, border-color .18s ease, background .18s ease;
    }

    .animal-card:hover,
    .asset-modal-item:hover {
      transform: translateY(-2px);
      border-color: #e5cdbd;
      background: #fffaf6;
    }

    .animal-card.active,
    .asset-modal-item.active {
      border-color: var(--primary);
      background: #fff1e8;
      box-shadow: 0 8px 22px -12px rgba(255,140,90,.45);
    }

    .animal-mini,
    .asset-modal-thumb {
      width: 100%;
      height: 82px;
      display: grid;
      place-items: center;
      border-radius: 14px;
      background: #fff8f4;
      overflow: hidden;
      margin-bottom: 8px;
    }

    .animal-mini-img,
    .asset-modal-thumb img {
      max-width: 100%;
      max-height: 100%;
      object-fit: contain;
      display: block;
    }

    .animal-label,
    .asset-modal-name {
      color: var(--text);
      font-size: 13px;
      font-weight: 800;
      line-height: 1.35;
    }

    .source-badge,
    .asset-modal-meta {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 24px;
      margin-top: 6px;
      padding: 0 8px;
      border-radius: 999px;
      background: #ebfbf6;
      color: var(--secondary-dark);
      font-size: 11px;
      font-weight: 800;
    }

    .asset-inline-footer {
      display: grid;
      gap: 8px;
      margin-top: 12px;
      padding-top: 12px;
      border-top: 1px solid var(--line);
    }

    .asset-inline-status,
    .asset-modal-status {
      color: var(--muted);
      font-size: 12px;
      font-weight: 800;
      text-align: center;
    }

    .asset-more-btn,
    .asset-modal-page-btn,
    .asset-modal-close-btn {
      width: 100%;
      min-height: 42px;
      border-radius: 14px;
      border: 1px solid var(--line);
      background: var(--primary);
      color: #fff;
      padding: 0 14px;
      font-size: 14px;
      font-weight: 900;
      cursor: pointer;
      box-shadow: 0 8px 18px rgba(255, 140, 90, .18);
    }

    .asset-empty-state {
      grid-column: 1 / -1;
      border: 1px dashed var(--line);
      background: #fffaf6;
      border-radius: 18px;
      padding: 18px;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.55;
      text-align: center;
      font-weight: 700;
    }

    .animal-preview-root { display: block; }

    .animal-preview-shell {
      overflow: hidden;
      border: 1px solid #d4d7db;
      border-radius: 22px;
      background: #e5e7eb;
      padding: 5px;
      box-shadow: inset 0 8px 18px rgba(0,0,0,0.05);
    }

    .animal-preview-fit-area {
      width: 100%;
      display: flex;
      justify-content: center;
      align-items: flex-start;
      overflow: hidden;
      padding: 0;
    }

    .animal-paper-scale-wrap {
      display: block;
      margin: 0 auto;
      overflow: hidden;
      position: relative;
    }

    .a4-paper.animal-paper-sheet {
      width: 800px;
      height: 1131px;
      background: #fff;
      position: relative;
      flex-shrink: 0;
      box-shadow: 0 10px 22px rgba(0,0,0,0.12);
      border-radius: 8px;
      overflow: hidden;
      color: #243042;
    }

    .animal-page-inner {
      position: absolute;
      inset: 0;
      padding: 54px 56px 48px;
      display: flex;
      flex-direction: column;
    }

    .animal-page-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 18px;
    }

    .animal-page-kicker {
      color: var(--secondary-dark);
      font-size: 13px;
      font-weight: 900;
      letter-spacing: .08em;
      text-transform: uppercase;
      margin-bottom: 6px;
    }

    .animal-page-head h3 {
      margin: 0;
      font-size: 30px;
      line-height: 1.1;
      letter-spacing: -.03em;
      color: #243042;
    }

    .animal-page-badge {
      border-radius: 999px;
      background: #ebfbf6;
      border: 1px solid #d5f3ea;
      color: var(--secondary-dark);
      font-size: 12px;
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: .08em;
      padding: 7px 10px;
      white-space: nowrap;
    }

    .animal-name-line {
      display: flex;
      align-items: center;
      gap: 14px;
      margin-bottom: 18px;
      color: #667085;
      font-size: 18px;
      font-weight: 700;
    }

    .animal-name-line span:last-child {
      flex: 1;
      border-bottom: 2px solid #d7dee7;
      transform: translateY(1px);
    }

    .animal-artwork-wrap {
      flex: 1;
      border: 1px dashed #eadfd6;
      border-radius: 18px;
      background: linear-gradient(180deg, #fff 0%, #fffdfb 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      padding: 36px;
    }

    .animal-artwork {
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .animal-artwork-image-wrap {
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .animal-artwork-image {
      max-width: 100%;
      max-height: 100%;
      object-fit: contain;
      display: block;
    }

    .animal-page-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      color: #8a97a7;
      font-size: 13px;
      font-weight: 700;
      padding-top: 18px;
    }

    .asset-modal[hidden] { display: none !important; }
    .asset-modal {
      position: fixed;
      inset: 0;
      z-index: 120;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 18px;
    }
    .asset-modal-backdrop {
      position: absolute;
      inset: 0;
      background: rgba(16,24,40,.55);
      backdrop-filter: blur(4px);
    }
    .asset-modal-panel {
      position: relative;
      z-index: 1;
      width: min(980px, 100%);
      max-height: min(86vh, 820px);
      overflow: hidden;
      display: grid;
      grid-template-rows: auto auto 1fr auto;
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 28px;
      box-shadow: 0 24px 60px rgba(16,24,40,.18);
      padding: 20px;
    }
    .asset-modal-head,
    .asset-modal-foot {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      margin-bottom: 14px;
    }
    .asset-modal-title {
      margin: 0 0 4px;
      color: var(--text);
      font-size: 24px;
      font-weight: 900;
    }
    .asset-modal-subtitle {
      margin: 0;
      color: var(--muted);
      font-size: 13px;
      font-weight: 700;
    }
    .asset-modal-grid-wrap { overflow: auto; padding-right: 4px; }
    .asset-modal-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
    .asset-modal-actions { display: flex; gap: 10px; }
    .asset-modal-actions .asset-modal-page-btn { min-width: 120px; }

    .fixed { position: fixed; }
    .inset-0 { inset: 0; }
    .hidden { display: none !important; }
    .z-\[100\] { z-index: 100; }
    .bg-gray-900\/60 { background: rgba(17,24,39,.60); }
    .backdrop-blur-sm { backdrop-filter: blur(4px); }
    .flex { display: flex; }
    .items-center { align-items: center; }
    .justify-center { justify-content: center; }
    .p-4 { padding: 1rem; }

    @media (max-width: 640px) {
      .tool-mode-tabs,
      .animal-selector { grid-template-columns: 1fr; }
      .animal-page-inner { padding: 24px 20px 22px; }
      .animal-page-head h3 { font-size: 22px; }
      .animal-page-badge { display: none; }
    }
