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

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

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

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

  #hfc-icc .hfc-icc__controls {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: var(--icc-card);
    border: 1px solid var(--icc-line);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 16px;
  }
  #hfc-icc .hfc-icc__label {
    display: block;
    font-size: 0.82rem;
    color: var(--icc-muted) !important;
    margin-bottom: 6px;
  }
  #hfc-icc .hfc-icc__select,
  #hfc-icc .hfc-icc__number {
    width: 100%;
    font-family: var(--icc-sans);
    font-size: 0.88rem;
    padding: 8px 10px;
    border: 1px solid var(--icc-line);
    border-radius: 8px;
    background: var(--icc-paper);
    color: var(--icc-ink) !important;
  }
  #hfc-icc .hfc-icc__range {
    width: 100%;
    accent-color: var(--icc-accent);
  }
  #hfc-icc .hfc-icc__note {
    display: block;
    font-size: 0.74rem;
    color: var(--icc-muted) !important;
    margin-top: 4px;
  }
  #hfc-icc .hfc-icc__tip {
    display: block;
    font-size: 0.74rem;
    color: var(--icc-muted) !important;
    margin-top: 6px;
    line-height: 1.4;
  }

  #hfc-icc .hfc-icc__dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
    padding: 28px 16px;
    border: 1.5px dashed var(--icc-line);
    border-radius: 12px;
    background: var(--icc-card);
    cursor: pointer;
    margin-bottom: 16px;
  }
  #hfc-icc .hfc-icc__dropzone.is-dragover {
    border-color: var(--icc-accent);
    background: var(--icc-accent-soft);
  }
  #hfc-icc .hfc-icc__dropmain {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--icc-ink) !important;
  }
  #hfc-icc .hfc-icc__dropnote {
    font-size: 0.76rem;
    color: var(--icc-muted) !important;
  }

  #hfc-icc .hfc-icc__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
  }
  #hfc-icc .hfc-icc__row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--icc-card);
    border: 1px solid var(--icc-line);
    border-radius: 10px;
  }
  #hfc-icc .hfc-icc__thumb {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    background: var(--icc-paper);
    flex-shrink: 0;
  }
  #hfc-icc .hfc-icc__rowinfo { flex: 1; min-width: 0; }
  #hfc-icc .hfc-icc__rowname {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--icc-ink) !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  #hfc-icc .hfc-icc__rowsize {
    font-size: 0.76rem;
    color: var(--icc-muted) !important;
    font-family: var(--icc-mono);
  }
  #hfc-icc .hfc-icc__rowsize .is-good { color: var(--icc-good) !important; }
  #hfc-icc .hfc-icc__rowdl {
    padding: 7px 12px;
    border-radius: 7px;
    background: var(--icc-ink);
    color: #f4f4f2 !important;
    font-size: 0.78rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
  }
  #hfc-icc .hfc-icc__rowerror {
    font-size: 0.78rem;
    color: var(--icc-accent) !important;
    flex-shrink: 0;
  }

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

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