.hc-module{
  --hc-navy:#172c4b;--hc-ink:#30251f;--hc-line:#6d523a;--hc-cream:#fbf7f0;--hc-border:#e6d8c7;
  box-sizing:border-box;width:100%;max-width:100%;min-width:0;overflow:hidden;
  font-family:inherit;margin:22px 0;padding:20px;border:1px solid var(--hc-border);border-radius:18px;
  background:linear-gradient(180deg,#fffdf9,#fbf6ee);color:var(--hc-ink);
  container-type:inline-size;
}
.hc-module *{box-sizing:border-box;min-width:0}
.hc-head h3{margin:0 0 5px;font-family:Georgia,serif;font-size:28px;font-weight:500;line-height:1.15}
.hc-head p{margin:0 0 18px;color:#71655c;line-height:1.4}
.hc-layout{display:flex;flex-wrap:wrap;gap:20px;align-items:flex-start;width:100%}
.hc-preview-card{flex:1 1 280px;max-width:390px;background:#fff;border:1px solid var(--hc-border);border-radius:16px;padding:14px}
.hc-pendant-wrap{width:100%;max-width:330px;margin:auto}
.hc-preview{width:100%;height:auto;display:block;overflow:visible}
.hc-disc{fill:#f5f1e9;stroke:#cfc7bb;stroke-width:2}
.hc-rim{fill:none;stroke:#b6ab9d;stroke-width:3}
.hc-spiral{fill:none;stroke:#37261c;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.hc-event-dot{fill:#37261c}
.hc-event-icon{fill:none;stroke:#37261c;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round}
.hc-center-mark{fill:#37261c}
.hc-preview-note{font-size:12px;color:#7d7065;text-align:center;margin-top:8px;line-height:1.5}
.hc-builder{flex:2 1 390px;width:100%}
.hc-builder-title,.hc-symbol-title{font-size:18px;font-weight:600;margin-bottom:10px}
.hc-events-list{width:100%}
.hc-event-row{display:grid;grid-template-columns:minmax(128px,.9fr) minmax(150px,1.35fr) 54px 40px;gap:8px;align-items:center;margin-bottom:10px;padding:4px;border-radius:12px;transition:.15s ease}
.hc-event-row.is-active{background:#f7efe5;box-shadow:inset 0 0 0 1px #d8c2a8}
.hc-event-row input{width:100%;max-width:100%;height:44px;border:1px solid var(--hc-border);border-radius:10px;padding:9px 10px;background:#fff;font-size:14px;line-height:1.2}
.hc-event-symbol,.hc-remove{width:100%;height:44px;border:1px solid var(--hc-border);background:#fff;border-radius:10px;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0}
.hc-event-symbol:hover,.hc-event-row.is-active .hc-event-symbol{border-color:#aa8866}
.hc-remove{font-size:20px;color:#9a4b43}
.hc-add-event{width:100%;border:1px dashed #cdb99f;background:#fffaf3;border-radius:11px;padding:11px;cursor:pointer}
.hc-add-event:disabled{cursor:not-allowed}
.hc-limit-note{font-size:12px;color:#8a7d72;margin-top:7px}
.hc-symbol-panel{margin-top:18px;padding-top:16px;border-top:1px solid var(--hc-border);width:100%}
.hc-symbol-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(72px,1fr));gap:8px;width:100%}
.hc-symbol-choice{width:100%;border:1px solid var(--hc-border);background:#fff;border-radius:11px;padding:8px 4px;min-height:72px;cursor:pointer;color:var(--hc-ink);white-space:normal}
.hc-symbol-choice:hover,.hc-symbol-choice.is-selected{border-color:var(--hc-navy);box-shadow:0 0 0 2px rgba(23,44,75,.08)}
.hc-symbol-choice small{display:block;margin-top:4px;font-size:10px;line-height:1.15;overflow-wrap:anywhere}
.hc-symbol-icon svg,.hc-event-symbol svg{width:27px;height:27px;display:block;margin:auto;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.hc-back-preview{display:grid;grid-template-columns:minmax(160px,210px) minmax(0,1fr);gap:16px;margin-top:16px;padding:14px 16px;background:#fff;border:1px solid var(--hc-border);border-radius:12px}
.hc-back-preview strong,.hc-back-preview span{display:block}
.hc-back-preview span{font-size:12px;color:#776b62;margin-top:3px;line-height:1.4}
.hc-back-list{margin:0;padding-left:20px;font-size:13px;overflow-wrap:anywhere}
.hc-back-list li{margin:2px 0}

/* Journal product columns can be narrow even on a wide desktop screen. */
@container (max-width:760px){
  .hc-layout{display:block}
  .hc-preview-card{max-width:none;width:100%;margin-bottom:18px}
  .hc-pendant-wrap{max-width:290px}
  .hc-builder{width:100%}
  .hc-event-row{grid-template-columns:minmax(122px,.95fr) minmax(130px,1.25fr) 50px 38px}
  .hc-symbol-grid{grid-template-columns:repeat(auto-fit,minmax(74px,1fr))}
}
@container (max-width:520px){
  .hc-module{padding:14px;border-radius:14px}
  .hc-head h3{font-size:24px}
  .hc-event-row{grid-template-columns:minmax(0,1fr) 50px 38px;padding:5px}
  .hc-event-row .hc-date{grid-column:1/4}
  .hc-event-row .hc-title{grid-column:1/2}
  .hc-symbol-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .hc-back-preview{grid-template-columns:1fr}
}
@media(max-width:600px){
  .hc-module{padding:14px;margin:15px 0}
  .hc-layout{display:block}
  .hc-preview-card{max-width:none;margin-bottom:18px}
  .hc-event-row{grid-template-columns:minmax(0,1fr) 50px 38px}
  .hc-event-row .hc-date{grid-column:1/4}
  .hc-symbol-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .hc-back-preview{grid-template-columns:1fr}
}
