.sy-raffle-dialog,.sy-raffle-view,.sy-raffle-draft {
  --raffle-bg:#fff;--raffle-text:#19263e;--raffle-muted:#53637c;
  --raffle-line:#dce5f1;--raffle-blue:#225ee8;--raffle-soft:#eaf2ff;
  --raffle-hero:linear-gradient(120deg,#edf5ff,#dbeaff);
  --raffle-error:#af233b;
  box-sizing:border-box;color:var(--raffle-text);
}

.sy-raffle-tool {
  display:inline-flex;position:relative;align-items:center;justify-content:center;
  flex:0 0 auto;vertical-align:middle;min-width:36px;min-height:36px;padding:5px;
  border:0;border-radius:9px;color:inherit;background:transparent;cursor:pointer;
  font-size:20px;line-height:1;
}
.sy-raffle-tool:hover,.sy-raffle-tool.is-set {background:#eaf2ff;color:#225ee8}
.sy-raffle-tool.is-set::after {
  content:"";position:absolute;right:4px;top:4px;width:6px;height:6px;
  border-radius:50%;background:currentColor;
}
.sy-raffle-tool:disabled {opacity:.5;cursor:wait}

.sy-raffle-dialog {
  position:fixed;inset:0;margin:auto;width:min(620px,calc(100% - 28px));
  max-width:none;max-height:calc(100% - 28px);max-height:calc(100dvh - 28px);
  padding:0;border:1px solid var(--raffle-line);border-radius:22px;
  overflow:auto;overscroll-behavior:contain;background:var(--raffle-bg);
  box-shadow:0 24px 70px #0c24563b;color-scheme:light;
}
.sy-raffle-dialog::backdrop {background:#101d366f}
.sy-raffle-dialog-header {
  display:flex;align-items:center;gap:14px;padding:20px 24px;
  background:var(--raffle-hero);
}
.sy-raffle-iconbox {
  flex:0 0 58px;width:58px;height:58px;display:grid;place-items:center;
  border-radius:15px;background:#aacbff36;
}
.sy-raffle-gift {display:block;object-fit:contain;pointer-events:none}
.sy-raffle-iconbox .sy-raffle-gift {width:52px;height:52px}
.sy-raffle-heading {flex:1;min-width:0}
.sy-raffle-heading h2 {margin:0;font-size:23px;line-height:1.34;color:inherit}
.sy-raffle-heading p {margin:4px 0 0;color:var(--raffle-muted);font-size:13px}
.sy-raffle-dialog-body {padding:22px 24px 24px}
.sy-raffle-dialog-body>*+* {margin-top:15px}
.sy-raffle-columns {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:14px}
.sy-raffle-field {display:grid;gap:7px;min-width:0;margin-bottom:0;font-size:14px}
.sy-raffle-field-label {font-weight:650}
.sy-raffle-field small,.sy-raffle-note {color:var(--raffle-muted);font-size:13px;line-height:1.55}
.sy-raffle-field input,.sy-raffle-field textarea {
  box-sizing:border-box;display:block;width:100%;min-width:0;max-width:100%;min-height:42px;
  border:1px solid var(--raffle-line);border-radius:10px;margin:0;padding:9px 11px;
  background:var(--raffle-bg);color:var(--raffle-text);font:inherit;line-height:1.4;
}
.sy-raffle-field textarea {resize:vertical}
.sy-raffle-field input[type=datetime-local]::-webkit-date-and-time-value {text-align:left}
.sy-raffle-field input:focus,.sy-raffle-field textarea:focus {border-color:var(--raffle-blue)}
.sy-raffle-note {display:flex;align-items:flex-start;gap:7px;margin-bottom:0}
.sy-raffle-note>i {font-size:16px;color:var(--raffle-blue)}
.sy-raffle-error {font-size:13px;color:var(--raffle-error)}
.sy-raffle-error:empty {display:none}
.sy-raffle-actions {display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px}

.sy-raffle-button {
  appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:5px;
  min-height:40px;padding:7px 13px;box-sizing:border-box;
  white-space:nowrap;border:1px solid var(--raffle-line);border-radius:10px;
  background:var(--raffle-bg);color:var(--raffle-text);font:inherit;
  font-size:14px;font-weight:600;text-decoration:none;cursor:pointer;
}
.sy-raffle-button:hover {background:var(--raffle-soft);color:var(--raffle-text)}
.sy-raffle-primary,.sy-raffle-primary:hover {border-color:var(--raffle-blue);background:var(--raffle-blue);color:#fff}
.sy-raffle-primary:hover {filter:brightness(.92)}
.sy-raffle-button:disabled {opacity:.65;cursor:wait}
.sy-raffle-close {align-self:flex-start;min-width:36px;min-height:36px;padding:0;background:transparent;border:0;color:var(--raffle-text)}
.sy-raffle-close>i {font-size:19px}
.sy-raffle-remove {color:var(--raffle-error);border-color:transparent;margin-right:auto}
.sy-raffle-tool:focus-visible,.sy-raffle-button:focus-visible,.sy-raffle-field :focus-visible {
  outline:2px solid #3977f0;outline-offset:2px;
}

.sy-raffle-draft {
  display:flex;align-items:center;gap:12px;margin:8px 14px 12px;padding:8px 12px;
  border:1px solid var(--raffle-line);border-radius:13px;background:var(--raffle-soft);
}
.sy-raffle-draft>i {color:var(--raffle-blue);font-size:21px;flex:none}
.sy-raffle-draft-info {flex:1;min-width:0;display:grid;gap:3px;overflow-wrap:anywhere}
.sy-raffle-draft-info strong {font-size:15px}
.sy-raffle-draft-info small {font-size:12px;color:var(--raffle-muted);line-height:1.5}
.sy-raffle-draft .sy-raffle-button {min-height:36px}

.sy-raffle-view {
  container-type:inline-size;width:100%;max-width:660px;margin:18px 0;
  overflow:hidden;border:1px solid var(--raffle-line);border-radius:19px;background:var(--raffle-bg);
  text-align:left;line-height:1.4;
}
.sy-raffle-hero {
  display:grid;grid-template-columns:minmax(0,1fr) clamp(76px,25%,150px);
  gap:8px;align-items:center;min-height:128px;padding:16px 20px;
  background:var(--raffle-hero);
}
.sy-raffle-hero>.sy-raffle-gift {width:100%;height:auto;aspect-ratio:1;max-height:132px}
.sy-raffle-hero-text {min-width:0;overflow-wrap:anywhere}
.sy-raffle-status {
  display:inline-flex;padding:3px 9px;border-radius:100px;
  background:#d7e6ff;color:#194ba7;font-size:12px;font-weight:700;
}
.sy-raffle-status.is-open {background:var(--raffle-blue);color:#fff}
.sy-raffle-status.is-finished {background:#d9f5e8;color:#1f633f}
.sy-raffle-hero h3 {margin:6px 0 2px;font-size:24px;line-height:1.25;color:inherit}
.sy-raffle-prize {margin:0;color:var(--raffle-text);font-size:17px;font-weight:700;white-space:pre-wrap}
.sy-raffle-info {padding:0 18px}
.sy-raffle-facts {display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.25fr);gap:9px;margin:0;padding:15px 0}
.sy-raffle-fact {display:flex;align-items:center;gap:9px;min-width:0}
.sy-raffle-fact+.sy-raffle-fact {padding-left:12px;border-left:1px solid var(--raffle-line)}
.sy-raffle-fact-icon {
  display:grid;place-items:center;flex:0 0 35px;height:35px;
  color:var(--raffle-blue);background:var(--raffle-soft);border-radius:9px;font-size:18px;
}
.sy-raffle-fact dt {font-size:12px;color:var(--raffle-muted)}
.sy-raffle-fact dd {margin:1px 0 0;font-size:14px;font-weight:650;line-height:1.4;overflow-wrap:anywhere}
.sy-raffle-view-footer {display:flex;gap:10px;align-items:center;justify-content:space-between;padding:12px 0;border-top:1px solid var(--raffle-line)}
.sy-raffle-comment-note {
  display:flex;align-items:flex-start;gap:7px;min-width:0;margin:0;
  color:var(--raffle-muted);font-size:13px;line-height:1.5;
}
.sy-raffle-comment-note>i {font-size:16px;flex:none}
.sy-raffle-comment-note>span {overflow-wrap:anywhere;white-space:pre-wrap}
.sy-raffle-pending {display:flex;align-items:center;gap:9px;padding:12px;color:var(--raffle-muted)}
.sy-raffle-pending>i {color:var(--raffle-blue);font-size:19px}
.sy-raffle-dialog-body>.sy-raffle-view {margin:0}
.sy-raffle-results-title {font-size:16px;margin-bottom:0}
.sy-raffle-winners {margin-bottom:0;padding-left:23px;overflow-wrap:anywhere}
.sy-raffle-winners li {margin:6px 0}

.sy-raffle-feed-row {
  display:flex;justify-content:flex-end;align-items:center;clear:both;
  margin:7px 0 4px;
}
.sy-raffle-feed-mark {
  display:inline-flex;align-items:center;gap:5px;max-width:100%;
  padding:3px 8px 3px 5px;border:1px solid #d9e6fb;border-radius:99px;
  background:linear-gradient(104deg,#eff5ff,#e9f1ff);
  color:#214c91;font-size:12px;line-height:1.3;white-space:nowrap;
}
.sy-raffle-feed-mark .sy-raffle-gift {width:21px;height:21px;flex:none}
.sy-raffle-feed-mark strong {font-size:inherit;font-weight:650}
.sy-raffle-feed-state {padding-inline-start:6px;border-inline-start:1px solid #c5d8f5;color:#405c86}
.sy-raffle-feed-mark.is-drawing {border-color:#e9e0cd;background:#fffbef;color:#765927}
.sy-raffle-feed-mark.is-finished {border-color:#dce8e3;background:#f0f7f3;color:#325c46}
.sy-raffle-feed-mark:not(.is-open) .sy-raffle-feed-state {color:inherit;border-color:currentColor}

@container (max-width:360px) {
  .sy-raffle-hero {min-height:106px;padding:13px 14px}
  .sy-raffle-hero h3 {font-size:20px}
  .sy-raffle-info {padding:0 12px}
  .sy-raffle-facts {gap:6px}
  .sy-raffle-fact {gap:5px}
  .sy-raffle-fact+.sy-raffle-fact {padding-left:7px}
  .sy-raffle-fact-icon {display:none}
  .sy-raffle-view-footer {align-items:flex-start;flex-direction:column}
  .sy-raffle-view-footer>.sy-raffle-button {align-self:flex-end}
}
@media (max-width:430px) {
  .sy-raffle-dialog-header {padding:13px 15px;gap:10px}
  .sy-raffle-heading h2 {font-size:19px}
  .sy-raffle-dialog-body {padding:15px}
  .sy-raffle-columns {grid-template-columns:minmax(0,.78fr) minmax(0,1.22fr);gap:8px}
  .sy-raffle-field input,.sy-raffle-field textarea {font-size:16px;padding-inline:6px}
  .sy-raffle-field input[type=datetime-local] {font-size:14px}
}
@media (max-width:355px) {
  .sy-raffle-columns {grid-template-columns:minmax(0,1fr)}
}
:is([data-theme=dark],[data-color-scheme=dark],.dark,.ls-dark) :is(.sy-raffle-dialog,.sy-raffle-view,.sy-raffle-draft) {
  --raffle-bg:#202a3b;--raffle-text:#f1f6ff;--raffle-muted:#bbc9e0;--raffle-line:#415475;
  --raffle-blue:#2867ed;--raffle-soft:#2d4265;--raffle-hero:linear-gradient(120deg,#2c4370,#233455);
  --raffle-error:#ff9fa9;color-scheme:dark;
}
:is([data-theme=dark],[data-color-scheme=dark],.dark,.ls-dark) .sy-raffle-feed-mark {
  background:#263b60;border-color:#415b87;color:#d8e8ff;
}
:is([data-theme=dark],[data-color-scheme=dark],.dark,.ls-dark) .sy-raffle-feed-state {
  color:inherit;border-color:#6e86ad;
}
