
  #hfc-szp, #hfc-szp * { box-sizing: border-box; }
  #hfc-szp {
    --szp-ink: #1c1b1a;
    --szp-paper: #eff1ec;
    --szp-card: #ffffff;
    --szp-accent: #d7263d;
    --szp-accent-soft: rgba(215,38,61,0.08);
    --szp-line: #d8dad4;
    --szp-muted: #6b6e68;
    --szp-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --szp-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

    max-width: 560px;
    margin: 2rem auto;
    background: var(--szp-card);
    border: 1px solid var(--szp-line);
    border-radius: 14px;
    overflow: hidden;
    font-family: var(--szp-sans);
    color: var(--szp-ink);
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  }

  #hfc-szp .hfc-szp__header {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--szp-ink);
    color: #f4f4f2;
    padding: 18px 20px;
  }
  #hfc-szp .hfc-szp__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--szp-accent);
    flex-shrink: 0;
    animation: hfc-szp-pulse 2.2s ease-in-out infinite;
  }
  @media (prefers-reduced-motion: reduce) {
    #hfc-szp .hfc-szp__dot { animation: none; }
  }
  @keyframes hfc-szp-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
  }
  #hfc-szp .hfc-szp__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #f4f4f2 !important;
  }
  #hfc-szp .hfc-szp__tag {
    margin: 2px 0 0;
    font-size: 0.85rem;
    color: #c7c7c3 !important;
  }

  #hfc-szp .hfc-szp__body { padding: 20px; background: var(--szp-paper); }

  #hfc-szp .hfc-szp__label {
    display: block;
    font-size: 0.82rem;
    color: var(--szp-muted);
    margin-bottom: 8px;
    padding: 0;
    border: none;
  }

  #hfc-szp .hfc-szp__platforms { border: none; padding: 0; margin: 0 0 16px; }

  #hfc-szp .hfc-szp__segmented {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  #hfc-szp .hfc-szp__seg {
    padding: 10px 6px;
    border: 1px solid var(--szp-line);
    border-radius: 9px;
    background: var(--szp-card);
    font-family: var(--szp-sans);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--szp-ink) !important;
    cursor: pointer;
    text-align: center;
  }
  #hfc-szp .hfc-szp__seg.is-active {
    border-color: var(--szp-accent);
    background: var(--szp-accent-soft);
    color: var(--szp-accent) !important;
  }

  #hfc-szp .hfc-szp__uploadrow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
  }
  #hfc-szp .hfc-szp__uploadbtn {
    display: inline-block;
    padding: 9px 14px;
    background: var(--szp-ink);
    color: #f4f4f2 !important;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
  }
  #hfc-szp .hfc-szp__removebtn {
    padding: 9px 14px;
    background: var(--szp-card);
    border: 1px solid var(--szp-line);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--szp-ink) !important;
    cursor: pointer;
  }
  #hfc-szp .hfc-szp__note {
    font-size: 0.78rem;
    color: var(--szp-muted) !important;
  }

  #hfc-szp .hfc-szp__stage {
    display: flex;
    justify-content: center;
    background: var(--szp-card);
    border: 1px solid var(--szp-line);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 16px;
  }
  #hfc-szp .hfc-szp__frame {
    position: relative;
    width: 100%;
    max-width: 260px;
    aspect-ratio: 9 / 16;
    background: #2a2a28;
    border-radius: 8px;
    overflow: hidden;
  }
  #hfc-szp .hfc-szp__placeholder {
    position: absolute;
    inset: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.78rem;
    line-height: 1.4;
    color: rgba(255,255,255,0.55) !important;
    border: 1px dashed rgba(255,255,255,0.25);
    border-radius: 6px;
    padding: 10px;
  }
  #hfc-szp video,
  #hfc-szp img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #2a2a28;
  }
  #hfc-szp .hfc-szp__overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
  }
  #hfc-szp .hfc-szp__zone {
    position: absolute;
  }

  #hfc-szp .hfc-szp__legend {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
  }
  #hfc-szp .hfc-szp__legenditem {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.83rem;
    color: var(--szp-muted) !important;
  }
  #hfc-szp .hfc-szp__legenditem .hfc-szp__swatch {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    margin-top: 3px;
    flex-shrink: 0;
  }

  #hfc-szp .hfc-szp__downloads {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  #hfc-szp .hfc-szp__dlbtn {
    flex: 1;
    min-width: 180px;
    padding: 11px 14px;
    border-radius: 9px;
    border: 1px solid var(--szp-accent);
    background: var(--szp-accent);
    color: #ffffff !important;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
  }
  #hfc-szp .hfc-szp__dlbtn--ghost {
    background: var(--szp-card);
    color: var(--szp-accent) !important;
  }

  #hfc-szp button:focus-visible,
  #hfc-szp input:focus-visible,
  #hfc-szp label:focus-within {
    outline: 2px solid var(--szp-accent);
    outline-offset: 2px;
  }
