.sp-top { padding-bottom: var(--sp-title); }
.sp-top .h1 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.sp-top .h1 em, .sp-grid .h2 em { font-style: italic; font-weight: 400; color: var(--rose-deep); }
.sp-lead { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); }
.sec.sp-main { padding-top: 0; padding-bottom: 0; }

.sp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; font-size: 14px; line-height: 1.55; }
.sp-grid.is-solo { grid-template-columns: minmax(0, 1fr); }
.sp-grid.is-solo .sp-aside { display: none; }
.sp-col { min-width: 0; }
.sp-grid [hidden] { display: none !important; }
.sp-grid .h2 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(21px, 2.1vw, 26px); line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; }
.sp-grid button { font-family: inherit; }

.sp-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: var(--sp-title); }
.sp-guestbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; padding: 10px 16px; background: var(--rose-mist); border: 1px solid var(--rose-soft); border-radius: var(--r-card); font-size: 13.5px; }
.sp-guestbar-mail { font-weight: 500; }
.sp-link { padding: 0; background: none; border: 0; color: var(--rose-deep); font-size: 13.5px; cursor: pointer; }

.sp-filters { display: flex; gap: 8px; margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.sp-filters::-webkit-scrollbar { display: none; }
.sp-filters button { flex: none; height: 36px; padding: 0 14px; border: 1px solid var(--rose-soft); border-radius: var(--r-btn); background: #fff; font-size: 13.5px; color: var(--ink-soft); white-space: nowrap; cursor: pointer; }
.sp-filters button:hover { border-color: var(--rose); }
.sp-filters button[aria-pressed="true"] { background: var(--rose-mist); border-color: var(--rose); color: var(--rose-deep); }
.sp-filters em { margin-left: 6px; font-style: normal; color: var(--ink-mute); }

.sp-tickets { display: grid; gap: 12px; }
.sp-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; padding: 16px 18px; text-align: left; background: #fff; border: 1px solid var(--rose-soft); border-radius: 12px; cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s; }
.sp-card:hover { border-color: var(--rose); box-shadow: 0 4px 18px rgba(166, 104, 152, 0.08); }
.sp-card[hidden] { display: none; }
.sp-card-main { display: grid; gap: 3px; min-width: 0; }
.sp-card-s { overflow: hidden; font-family: var(--font-display); font-weight: 500; font-size: 17px; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; }
.sp-card-m { overflow: hidden; font-size: 13px; color: var(--ink-mute); text-overflow: ellipsis; white-space: nowrap; }
.sp-card-r { display: flex; align-items: center; flex: none; gap: 10px; }
.sp-card-r svg { color: var(--rose); }
.sp-nomatch { margin: 0; padding: 22px; text-align: center; color: var(--ink-mute); background: #fff; border: 1px dashed var(--rose-soft); border-radius: 12px; }
.sp-more { display: flex; justify-content: center; margin-top: 18px; }

.sp-badge { display: inline-flex; align-items: center; flex: none; gap: 7px; padding: 5px 12px; border-radius: var(--r-round); font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.sp-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.b-open { background: #fbe6db; color: #c2562a; }
.b-pending { background: #f8efd2; color: #9a7400; }
.b-closed { background: #e2f0e6; color: #3f8d57; }

.sp-empty { display: grid; justify-items: center; gap: 10px; padding: 40px 22px; text-align: center; }
.sp-empty-ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--rose-mist); color: var(--rose-deep); }
.sp-empty h3 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 20px; }
.sp-empty p { max-width: none; margin: 0 0 6px; font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); }

.sp-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; padding: 0; background: none; border: 0; font-size: 14px; color: var(--rose-deep); cursor: pointer; }

.sp-conv { padding: 22px; }
.sp-conv-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.sp-conv-main { min-width: 0; }
.sp-conv-main .h2 { margin-bottom: 6px; overflow-wrap: anywhere; }
.sp-conv-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--ink-mute); }
.sp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.sp-steps li { display: grid; gap: 7px; font-size: 12.5px; color: var(--ink-mute); }
.sp-steps li::before { content: ""; height: 4px; border-radius: 2px; background: var(--rose-soft); }
.sp-steps li.on { color: var(--ink); }
.sp-steps li.on::before { background: var(--rose); }
.sp-hint { margin: 14px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
.sp-msgs { display: grid; gap: 16px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.sp-msg { display: flex; flex-direction: row-reverse; gap: 10px; max-width: 86%; justify-self: end; }
.sp-msg.team, .sp-msg.system { flex-direction: row; justify-self: start; }
.sp-av-c { display: grid; place-items: center; flex: none; width: 36px; height: 36px; overflow: hidden; border-radius: 50%; font-size: 14px; background: var(--rose-soft); color: var(--ink); }
.sp-msg.team .sp-av-c { background: var(--rose-mist); }
.sp-av-c img { width: 100%; height: 100%; object-fit: cover; }
.sp-bub { min-width: 0; padding: 12px 14px; background: var(--rose-mist); border: 1px solid var(--rose-soft); border-radius: 14px 4px 14px 14px; }
.sp-msg.team .sp-bub { background: #fff; border-color: var(--line); border-radius: 4px 14px 14px 14px; }
.sp-msg.system .sp-bub { background: #eef3f8; border-color: #d6e2ee; border-radius: 4px 14px 14px 14px; }
.sp-bh { display: flex; flex-wrap: wrap; gap: 2px 10px; margin-bottom: 6px; font-size: 12.5px; color: var(--ink-mute); }
.sp-bh b { font-weight: 500; color: var(--ink); }
.sp-bb { font-size: 14.5px; line-height: 1.55; overflow-wrap: anywhere; }
.sp-bb p { margin: 0; }
.sp-bb p + p { margin-top: 8px; }
.sp-bb ul, .sp-bb ol { margin: 6px 0; padding-left: 20px; }
.sp-bb a { color: var(--rose-deep); }
.sp-bb img.emoji { width: 1.1em; height: 1.1em; margin: 0 0.05em; vertical-align: -0.15em; }
.sp-pj { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.sp-th { width: 112px; height: 84px; padding: 0; overflow: hidden; background: #fff; border: 1px solid var(--rose-soft); border-radius: 8px; cursor: zoom-in; }
.sp-th img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sp-bb .sp-pdf { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; height: 40px; padding: 0 12px; background: #fff; border: 1px solid var(--rose-soft); border-radius: 8px; font-size: 13px; color: var(--ink); }
.sp-pdf span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-pdf svg { flex: none; color: var(--rose-deep); }

.sp-reply { display: grid; gap: 12px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.sp-form { display: grid; gap: 18px; padding: 22px; }
.f { display: grid; gap: 6px; min-width: 0; }
.f label, .sp-label { font-size: 13px; color: var(--ink); }
.sp-help { font-size: 12.5px; line-height: 1.45; color: var(--ink-mute); }
.sp-warn { margin: 0; padding: 9px 12px; background: #fbf3dc; border-radius: 8px; font-size: 13px; line-height: 1.45; color: #9a6a00; }
.sp-foot { display: flex; justify-content: flex-end; }

.sp-dd { position: relative; }
.sp-dd-btn { position: relative; display: block; width: 100%; height: var(--field-h); padding: 0 44px 0 16px; overflow: hidden; text-align: left; text-overflow: ellipsis; white-space: nowrap; background: #fff; border: 1px solid var(--rose-soft); border-radius: var(--r-field); font-size: 14px; color: var(--ink-mute); cursor: pointer; }
.sp-dd-btn::after { content: ""; position: absolute; top: calc(50% - 5px); right: 18px; width: 7px; height: 7px; border-right: 1.6px solid var(--rose-deep); border-bottom: 1.6px solid var(--rose-deep); transform: rotate(45deg); }
.sp-dd-btn:focus, .sp-dd.open .sp-dd-btn { outline: 0; border-color: var(--rose); }
.sp-dd-btn.has { color: var(--ink); }
.sp-dd-list { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 20; max-height: 280px; margin: 0; padding: 6px; overflow: auto; list-style: none; background: #fff; border: 1px solid var(--rose-soft); border-radius: var(--r-field); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12); }
.sp-dd-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 12px; border-radius: 8px; font-size: 14px; cursor: pointer; }
.sp-dd-list li:hover { background: var(--rose-mist); }
.sp-dd-list li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-dd-tag { flex: none; padding: 3px 9px; background: #f8efd2; border-radius: var(--r-round); font-size: 11.5px; font-style: normal; color: #9a7400; }

.sp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.sp-chips button { height: 32px; padding: 0 12px; background: #fff; border: 1px solid var(--rose-soft); border-radius: var(--r-round); font-size: 13px; color: var(--ink-soft); cursor: pointer; }
.sp-chips button:hover { border-color: var(--rose); color: var(--rose-deep); }

.sp-ed { display: grid; gap: 10px; min-width: 0; }
.sp-editor { position: relative; background: #fff; border: 1px solid var(--rose-soft); border-radius: var(--r-field); }
.sp-editor:focus-within { border-color: var(--rose); }
.sp-tb { position: relative; display: flex; gap: 4px; padding: 6px 8px; background: var(--cream); border-bottom: 1px solid var(--line); border-radius: var(--r-field) var(--r-field) 0 0; }
.sp-tb button { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; background: transparent; border: 0; border-radius: 8px; color: var(--ink-soft); cursor: pointer; }
.sp-tb button:hover { background: var(--rose-mist); color: var(--rose-deep); }
.sp-area { min-height: 140px; max-height: 480px; padding: 12px 16px; overflow-y: auto; font-size: 14px; line-height: 1.55; outline: 0; overflow-wrap: anywhere; }
.sp-area:empty::before { content: attr(data-ph); color: var(--ink-mute); }
.sp-area ul { margin: 6px 0; padding-left: 20px; }
.sp-area a { color: var(--rose-deep); }
.sp-pop { position: absolute; top: 100%; left: 8px; z-index: 20; margin-top: 6px; background: #fff; border: 1px solid var(--rose-soft); border-radius: var(--r-field); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12); }
.sp-pop--emoji { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; width: 300px; max-width: calc(100vw - 56px); padding: 8px; }
.sp-pop--emoji button { width: auto; height: auto; padding: 4px; font-size: 19px; line-height: 1; }
.sp-pop--link { display: flex; gap: 8px; width: 340px; max-width: calc(100vw - 56px); padding: 8px; }
.sp-pop--link .field { height: 40px; }
.sp-pop--link .btn { width: auto; height: 40px; }

.sp-drop { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 10px 12px; border: 1px dashed var(--rose-soft); border-radius: var(--r-field); }
.sp-ed.is-over .sp-drop, .sp-drop.is-over { background: var(--rose-mist); border-color: var(--rose); }
.sp-attach { height: var(--btn-h); }
.sp-atts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.sp-att { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--rose-soft); border-radius: var(--r-card); }
.sp-att.is-err { border-color: #e9b9b9; }
.sp-att-p { display: grid; place-items: center; gap: 4px; height: 96px; background: var(--rose-mist); font-size: 13px; color: var(--rose-deep); }
.sp-att-p img { width: 100%; height: 100%; object-fit: cover; }
.sp-att-i { display: grid; gap: 1px; padding: 8px 10px; font-size: 12.5px; }
.sp-att-i span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-att-i span:last-child { color: var(--ink-mute); }
.sp-att.is-err .sp-att-i span:last-child { color: var(--err); white-space: normal; }
.sp-att .sp-x { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; }
.sp-spin { width: 22px; height: 22px; border: 3px solid var(--rose-soft); border-top-color: var(--rose-deep); border-radius: 50%; animation: sp-spin 0.7s linear infinite; }
@keyframes sp-spin { to { transform: rotate(360deg); } }

.sp-x { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 34px; height: 34px; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: 50%; color: var(--ink-soft); cursor: pointer; }
.sp-x:hover { border-color: var(--rose); color: var(--rose-deep); }

.sp-check { display: flex; align-items: flex-start; gap: 12px; font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); cursor: pointer; }
.sp-check input { margin-top: 2px; }
.sp-check a { color: var(--rose-deep); }

.sp-gate { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.sp-gc { display: grid; align-content: start; gap: 12px; padding: 24px 22px; }
.sp-gc h3 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 19px; }
.sp-gc p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); }
.sp-gc > .btn { justify-self: start; }
.sp-gform { display: grid; gap: 14px; margin-top: 4px; }

.sp-aside { display: grid; gap: 18px; min-width: 0; }
.sp-av, .sp-tips { padding: 20px; }
.sp-av-t { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 500; }
.sp-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; }
.sp-dot.is-open { background: #3fc070; }
.sp-dot.is-closed { background: #cc4b4b; }
.sp-av-l { display: grid; gap: 9px; margin: 12px 0 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--ink-soft); }
.sp-av-l li { display: flex; align-items: flex-start; gap: 9px; line-height: 1.4; }
.sp-av-l svg { flex: none; margin-top: 2px; color: var(--rose-deep); }
.sp-tips h3 { margin: 0 0 10px; font-family: var(--font-display); font-weight: 500; font-size: 17px; }
.sp-tips ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); }
.sp-tips ul + ul { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.sp-tips li { display: flex; gap: 10px; }
.sp-tips ul:not(.sp-tips-links) li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 7px; background: var(--rose); border-radius: 50%; }
.sp-tips-links li { display: block; }
.sp-tips-links a { display: grid; gap: 1px; color: var(--ink); }
.sp-tips-links a:hover { color: var(--rose-deep); }
.sp-tips-links small { font-size: 12.5px; color: var(--ink-mute); }

.sp-lb { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; background: rgba(40, 25, 38, 0.78); cursor: zoom-out; }
.sp-lb img { max-width: 100%; max-height: 100%; border-radius: var(--r-card); }
.sp-lb-x { position: absolute; top: 16px; right: 16px; }

.sp-amodal-sym { font-size: 26px; line-height: 1; font-weight: 400; }
.sp-amodal .eden-modal__actions { justify-content: center; }
.sp-amodal .eden-modal__actions button { flex: 0 0 auto !important; min-width: 150px; padding: 9px 22px; }

@media (max-width: 980px) {
  .sp-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .sp-head .btn { height: 42px; padding: 0 16px; }
  .sp-conv, .sp-form { padding: 16px; }
  .sp-conv-head { flex-direction: column; gap: 10px; }
  .sp-msg { max-width: 100%; }
  .sp-av-c { display: none; }
  .sp-gate { grid-template-columns: 1fr; }
  .sp-card { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; }
  .sp-card-main { width: 100%; }
  .sp-card-r svg { display: none; }
  .sp-card-r .sp-badge { padding: 4px 10px; font-size: 12px; }
  .sp-atts { grid-template-columns: repeat(2, 1fr); }
  .sp-foot .btn { width: 100%; }
  .sp-area, .sp-dd-btn, .sp-grid .field { font-size: 16px; }
  .sp-gc h3 { font-size: var(--fs-h3); }
}
