/* SYPOWER composer chrome — original styles */
.sy-comp-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  flex-shrink: 0;
  margin-bottom: .15rem;
}
.sy-comp-left .composer-gear { margin-bottom: 0; }
.sy-comp-left button[hidden],
.composer-rail button[hidden] { display: none !important; }

.sy-comp-input {
  flex: 1;
  min-width: 0;
  position: relative;
}
.sy-comp-hint {
  position: absolute;
  inset: 0;
  padding: .05rem .1rem;
  color: rgba(255,255,255,.38);
  font-size: .78rem;
  line-height: 1.55;
  white-space: pre-wrap;
  pointer-events: none;
  overflow: hidden;
}
.sy-comp-input textarea {
  position: relative;
  z-index: 1;
  background: transparent;
}
.sy-comp-input textarea:not(:placeholder-shown) + .sy-comp-hint,
.sy-comp-hint[hidden] { display: none; }

.sy-comp-price {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  font-size: .68rem;
  color: var(--text-tertiary, #9aa3ab);
  white-space: nowrap;
}
.sy-comp-price-info {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18);
  background: transparent;
  color: inherit;
  font-size: .62rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.sy-comp-price[data-kind="per"] .sy-comp-price-text { color: #f5a623; }

.sy-comp-chip {
  display: inline-flex;
  align-items: center;
  gap: .15rem;
  height: 1.7rem;
  padding: 0 .6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: #292B33;
  color: #c5c9d1;
  font-size: .72rem;
  cursor: pointer;
}
.sy-comp-chip:hover { border-color: rgba(0,202,224,.35); color: #7ee7ef; }
.sy-comp-chip.is-on {
  background: #c98a2c;
  color: #1a1206;
  border-color: transparent;
}
.sy-comp-chip.is-disabled { opacity: .45; cursor: default; }
.sy-comp-note-inline {
  font-size: .68rem;
  color: rgba(255,255,255,.4);
  padding: 0 .2rem;
}

.sy-comp-ai {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  border: 0;
  background: #ff7a1a;
  color: #fff;
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .02em;
  box-shadow: 0 0 .7rem rgba(255,122,26,.35);
  cursor: pointer;
}
.sy-comp-ai:hover { filter: brightness(1.08); }
.composer-rail > button.is-hold {
  border-color: rgba(0,202,224,.7);
  color: #7ee7ef;
  box-shadow: 0 0 .6rem rgba(0,202,224,.35);
}

.sy-comp-layer {
  position: fixed;
  inset: 0;
  z-index: 92;
  display: none;
  align-items: center;
  justify-content: center;
}
.sy-comp-layer.is-open { display: flex; }
.sy-comp-bg { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.sy-comp-sheet {
  position: relative;
  z-index: 1;
  width: min(28rem, calc(100vw - 1.6rem));
  max-height: calc(100vh - 3.2rem);
  overflow: auto;
  padding: 1.15rem 1.2rem 1.15rem;
  border-radius: 1rem;
  background: #17181e;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 1.5rem 3rem rgba(0,0,0,.5);
  color: rgba(255,255,255,.92);
}
.sy-comp-sheet.is-wide { width: min(36rem, calc(100vw - 1.6rem)); }
.sy-comp-close {
  position: absolute; top: .65rem; right: .7rem;
  width: 1.8rem; height: 1.8rem; border: 0; border-radius: 50%;
  background: transparent; color: rgba(255,255,255,.6); font-size: 1.2rem; cursor: pointer;
}
.sy-comp-title { margin: 0 1.6rem .25rem 0; font-size: 1.05rem; }
.sy-comp-sub { margin: 0 1.6rem .85rem 0; font-size: .8rem; color: rgba(255,255,255,.5); line-height: 1.5; }
.sy-comp-note, .sy-comp-sheet-body .sy-comp-note {
  font-size: .75rem !important;
  color: rgba(255,255,255,.45) !important;
  line-height: 1.55;
  margin: 0 0 .8rem;
}
.sy-comp-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: .8rem;
  padding: .7rem .8rem .4rem;
  margin-bottom: .7rem;
}
.sy-comp-card h4 { margin: 0 0 .45rem; font-size: .82rem; color: #dce3ea; }
.sy-comp-row {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  padding: .55rem 0;
  border-top: 1px solid rgba(255,255,255,.05);
}
.sy-comp-row-main { flex: 1; min-width: 0; }
.sy-comp-row-title { font-size: .86rem; }
.sy-comp-row p { margin: .2rem 0 0; font-size: .74rem; color: rgba(255,255,255,.48); line-height: 1.5; }
.sy-comp-row.is-off { opacity: .72; }
.sy-comp-badge {
  display: inline-block;
  margin-left: .3rem;
  padding: 0 .35rem;
  border-radius: .25rem;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.55);
  font-size: .62rem;
  font-weight: 500;
  vertical-align: middle;
}
.sy-comp-badge.is-on { background: rgba(0,202,224,.18); color: #7ee7ef; }
.sy-comp-row input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
.sy-comp-switch {
  flex-shrink: 0;
  width: 2.1rem; height: 1.2rem;
  border-radius: 999px;
  background: #3a3d46;
  position: relative;
  margin-top: .15rem;
}
.sy-comp-switch::after {
  content: "";
  position: absolute; top: .12rem; left: .12rem;
  width: .96rem; height: .96rem;
  border-radius: 50%;
  background: #d7dbe2;
  transition: transform .15s ease;
}
.sy-comp-row input[type="checkbox"]:checked + .sy-comp-switch { background: #00CAE0; }
.sy-comp-row input[type="checkbox"]:checked + .sy-comp-switch::after { transform: translateX(.9rem); background: #062026; }
.sy-comp-row select {
  background: #111216;
  color: inherit;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: .4rem;
  padding: .2rem .35rem;
  font-size: .8rem;
}

.sy-comp-toolbar { display: flex; gap: .5rem; margin-bottom: .8rem; align-items: center; }
.sy-comp-search {
  flex: 1; min-width: 0;
  background: #111216;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: .5rem;
  color: inherit;
  padding: .45rem .65rem;
  font-size: .84rem;
}
.sy-comp-btn {
  border: 1px solid rgba(255,255,255,.12);
  background: #22242c;
  color: inherit;
  border-radius: .5rem;
  padding: .35rem .7rem;
  font-size: .8rem;
  cursor: pointer;
}
.sy-comp-btn.is-primary { background: #00CAE0; color: #062026; border-color: transparent; }
.sy-comp-btn.is-danger { color: #f0a0a0; border-color: rgba(240,160,160,.3); }
.sy-comp-empty {
  text-align: center;
  padding: 1.4rem .8rem;
  color: rgba(255,255,255,.45);
  font-size: .84rem;
  line-height: 1.6;
}
.sy-comp-item {
  border: 1px solid rgba(255,255,255,.07);
  border-radius: .7rem;
  padding: .7rem .8rem;
  margin-bottom: .55rem;
  background: rgba(255,255,255,.02);
}
.sy-comp-item h5 { margin: 0 0 .3rem; font-size: .88rem; }
.sy-comp-item p { margin: 0 0 .5rem; font-size: .8rem; color: rgba(255,255,255,.58); line-height: 1.5; white-space: pre-wrap; }
.sy-comp-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.sy-comp-form label, .sy-comp-form-block {
  display: block;
  margin-bottom: .7rem;
  font-size: .8rem;
  color: rgba(255,255,255,.7);
}
.sy-comp-form input, .sy-comp-form textarea, .sy-comp-form-block textarea {
  display: block;
  width: 100%;
  margin-top: .3rem;
  box-sizing: border-box;
  background: #111216;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: .5rem;
  color: inherit;
  padding: .45rem .6rem;
  font: inherit;
}
.sy-comp-check { display: flex; align-items: center; gap: .4rem; font-size: .82rem; margin: .4rem 0 .8rem; }
.sy-comp-check input { margin: 0; }

.sy-comp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.2rem, 1fr));
  gap: .55rem;
}
.sy-comp-asset {
  border: 1px solid rgba(255,255,255,.08);
  background: #111216;
  border-radius: .6rem;
  overflow: hidden;
  color: inherit;
  cursor: pointer;
  padding: 0;
  text-align: left;
}
.sy-comp-asset img { display: block; width: 100%; height: 5.2rem; object-fit: cover; }
.sy-comp-asset span, .sy-comp-file {
  display: block;
  padding: .35rem .45rem .45rem;
  font-size: .7rem;
  color: rgba(255,255,255,.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sy-comp-queue { list-style: none; margin: 0; padding: 0; }
.sy-comp-queue li {
  display: flex; align-items: center; gap: .55rem;
  padding: .4rem 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.sy-comp-queue img { width: 2.6rem; height: 2.6rem; object-fit: cover; border-radius: .35rem; }
.sy-comp-queue span { flex: 1; min-width: 0; font-size: .84rem; }

.sy-comp-pop {
  position: fixed;
  z-index: 95;
  min-width: 11.5rem;
  max-width: min(22rem, calc(100vw - 1.2rem));
  max-height: min(20rem, calc(100vh - 2rem));
  overflow: auto;
  padding: .4rem;
  border-radius: .7rem;
  background: #1c1e26;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 1rem 2rem rgba(0,0,0,.45);
  color: #e6e9ee;
}
.sy-comp-pop-title { font-size: .72rem; color: rgba(255,255,255,.45); padding: .25rem .5rem .35rem; }
.sy-comp-opt {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: inherit;
  border-radius: .4rem;
  padding: .4rem .55rem;
  font-size: .82rem;
  cursor: pointer;
}
.sy-comp-opt:hover, .sy-comp-opt.is-on { background: rgba(0,202,224,.12); color: #7ee7ef; }
.sy-comp-pop .sy-comp-note { padding: .35rem .5rem .2rem; margin: 0; }

.sy-comp-voice-hint {
  position: fixed;
  left: 50%;
  bottom: 6.2rem;
  transform: translateX(-50%);
  z-index: 96;
  max-width: min(28rem, calc(100vw - 2rem));
  background: #17181e;
  border: 1px solid rgba(0,202,224,.35);
  color: #d7f6f8;
  border-radius: .7rem;
  padding: .55rem .8rem;
  font-size: .82rem;
  box-shadow: 0 .8rem 1.6rem rgba(0,0,0,.4);
}

html[data-theme="light"] .sy-comp-hint { color: rgba(15,20,25,.38); }
html[data-theme="light"] .sy-comp-chip { background: #F3F4F6; color: #4b5563; }
html[data-theme="light"] .sy-comp-chip.is-on { background: #e0a54a; color: #2a1c08; }
html[data-theme="light"] .sy-comp-sheet,
html[data-theme="light"] .sy-comp-pop,
html[data-theme="light"] .sy-comp-voice-hint {
  background: #fff; color: #1e232d; border-color: rgba(15,23,42,.1);
}
html[data-theme="light"] .sy-comp-sub,
html[data-theme="light"] .sy-comp-note,
html[data-theme="light"] .sy-comp-item p,
html[data-theme="light"] .sy-comp-row p { color: rgba(15,23,42,.55) !important; }
html[data-theme="light"] .sy-comp-close { color: rgba(15,23,42,.5); }
html[data-theme="light"] .sy-comp-card,
html[data-theme="light"] .sy-comp-item,
html[data-theme="light"] .sy-comp-asset { background: #f6f7fb; border-color: rgba(15,23,42,.08); }
html[data-theme="light"] .sy-comp-form input,
html[data-theme="light"] .sy-comp-form textarea,
html[data-theme="light"] .sy-comp-search,
html[data-theme="light"] .sy-comp-row select { background: #fff; color: #1e232d; border-color: rgba(15,23,42,.12); }
html[data-theme="light"] .sy-comp-btn { background: #eef1f6; color: #1e232d; }
html[data-theme="light"] .sy-comp-switch { background: #d5d8e0; }

.sy-comp-input { min-height: 4.8rem; }
.composer .sy-comp-input textarea { min-height: 4.8rem; width: 100%; }

/* ===== t108 official-style composer polish ===== */
.composer-wrap {
  width: min(920px, calc(100% - 7.2rem));
  align-items: stretch;
  gap: .62rem;
  transform: translateX(-50%);
}
.sy-comp-left {
  align-self: center;
  gap: .42rem;
  margin-bottom: 0;
}
.sy-comp-rail-btn {
  width: 2.05rem;
  height: 2.05rem;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.1);
  background: #1A1C22;
  color: #9aa3ab;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}
.sy-comp-rail-btn .icon { width: 1.02rem; height: 1.02rem; }
.sy-comp-rail-btn:hover { color: #e8eef2; border-color: rgba(255,255,255,.22); }
.sy-comp-rail-btn.is-accent {
  color: #7ee7ef;
  border-color: rgba(0,202,224,.55);
  box-shadow: 0 0 0 1px rgba(0,202,224,.18), 0 0 .55rem rgba(0,202,224,.28);
}
.composer-wrap .composer {
  background: #16171c;
  border-radius: 1.35rem;
  border: 1px solid rgba(255,255,255,.05);
  padding: .72rem .9rem .58rem .78rem;
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
}
.composer-wrap .composer-top { gap: .62rem; align-items: flex-start; }
.composer-wrap .attach-tile {
  position: relative;
  width: 3.05rem;
  height: 3.05rem;
  border-radius: .62rem;
  border: 1px dashed rgba(255,255,255,.28);
  background: transparent;
  gap: 0;
  color: rgba(255,255,255,.55);
  flex-shrink: 0;
}
.composer-wrap .attach-plus { font-size: 1.05rem; line-height: 1; font-weight: 400; }
.composer-wrap .attach-lab { font-size: .58rem; letter-spacing: 0; margin-top: .05rem; }
.composer-wrap .attach-count {
  position: absolute;
  right: -.28rem;
  top: -.28rem;
  min-width: .9rem;
  height: .9rem;
  padding: 0 .2rem;
  border-radius: 999px;
  background: #292B33;
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.7);
  font-size: .52rem;
  line-height: .9rem;
  text-align: center;
}
.composer-wrap .attach-tile:not(.has-files) .attach-count { display: none; }

.sy-comp-input { min-height: 5.15rem; }
.composer .sy-comp-input textarea {
  min-height: 5.15rem;
  width: 100%;
  font-size: .8rem;
  line-height: 1.5;
  color: #e8edf2;
  caret-color: #00CAE0;
}
.sy-comp-hint {
  padding: .02rem .05rem 0;
  pointer-events: auto;
  cursor: text;
}
.sy-comp-hint-voice {
  font-size: .8rem;
  line-height: 1.5;
  color: rgba(255,255,255,.5);
  margin-bottom: .14rem;
}
.sy-comp-hint-body {
  font-size: .68rem;
  line-height: 1.55;
  color: rgba(255,255,255,.30);
  white-space: pre-wrap;
}
.sy-comp-input.is-hold .sy-comp-hint-voice { color: #7ee7ef; }

.sy-comp-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  position: relative;
  min-width: 6.2rem;
  min-height: 5.15rem;
  padding: 0 0 0 .2rem;
  flex-shrink: 0;
  gap: 0;
}
.sy-comp-price {
  font-size: .68rem;
  position: relative;
  z-index: 1;
  background: #16171c;
  padding-bottom: .15rem;
}
.sy-comp-price[data-kind="per"] .sy-comp-price-text,
.sy-comp-price[data-kind="per"] .sy-comp-price-info { color: #f0a429; }
.sy-comp-price-info {
  width: .95rem;
  height: .95rem;
  border-color: currentColor;
  opacity: .75;
  font-style: italic;
  font-family: Georgia, serif;
}
.sy-comp-aside-div {
  position: absolute;
  right: .72rem;
  top: 1.35rem;
  bottom: .2rem;
  width: 1px;
  background: rgba(255,255,255,.12);
  pointer-events: none;
}
.sy-comp-stack {
  width: 1.55rem;
  height: 1.55rem;
  margin-top: auto;
  margin-bottom: .15rem;
  margin-right: .1rem;
  border: 0;
  background: transparent;
  color: #9aa3ab;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  z-index: 1;
  padding: 0;
}
.sy-comp-stack .icon { width: 1.05rem; height: 1.05rem; }
.sy-comp-stack:hover { color: #e8eef2; }
.sy-comp-stack[hidden] { display: none !important; }
.composer-wrap[data-comp-type="chat"] .sy-comp-aside-div,
.composer-wrap[data-comp-type="audio"] .sy-comp-aside-div { display: none; }

.composer-wrap .composer-bottom {
  margin-top: .42rem;
  gap: .32rem;
  padding-top: 0;
}
.sy-comp-chip {
  height: 1.52rem;
  padding: 0 .5rem 0 .38rem;
  gap: .28rem;
  background: #2a2c34;
  color: #d2d6de;
  font-size: .68rem;
  border: 0;
}
.sy-comp-chip .sy-comp-ico {
  width: .86rem;
  height: .86rem;
  flex-shrink: 0;
  display: block;
}
.sy-comp-chip-lab { line-height: 1; }
.sy-comp-caret {
  font-size: .58rem;
  opacity: .55;
  margin-left: -.05rem;
  transform: translateY(-.04rem);
}
.sy-comp-chip.is-on {
  background: #d39a3a;
  color: #2a1c08;
}
.sy-comp-chip.is-on .sy-comp-caret { opacity: .7; color: inherit; }
.sy-comp-chip:hover { border-color: transparent; color: #fff; }
.sy-comp-chip.is-on:hover { color: #2a1c08; filter: brightness(1.05); }

.ico-spark { color: #c08bff; }
.ico-gold { color: #e8b453; }
.sy-comp-chip.is-on .ico-gold { color: #2a1c08; }
.ico-warm { color: #f0a06a; }
.ico-bolt { color: #f5d56a; }
.ico-clock { color: #9ad0ff; }
.ico-frame { color: #8eb4ff; }
.ico-res { color: #7ed0c8; }
.ico-gear { color: #9aa8c2; }
.ico-mem { color: #7ee0c8; }
.ico-skill { color: #c08bff; }

.composer-rail {
  align-self: stretch;
  justify-content: flex-start;
  gap: .38rem;
  padding-top: .05rem;
}
.composer-rail > .sy-comp-rail-btn,
.composer-rail > .help-fab {
  position: static;
  right: auto;
  bottom: auto;
  width: 2.05rem;
  height: 2.05rem;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.1);
  background: #1A1C22;
  color: #9aa3ab;
  box-shadow: none;
}
.composer-rail > .help-fab {
  color: #9aa3ab;
  font-size: .95rem;
  font-weight: 500;
  border-color: rgba(255,255,255,.1);
}
.composer-rail > .help-fab:hover,
.composer-rail > .sy-comp-rail-btn:hover { color: #e8eef2; }
.composer-rail .sy-comp-ai {
  width: 2.35rem;
  height: 2.35rem;
  margin-top: auto;
  font-size: .7rem;
  background: #ff7a18;
  box-shadow: 0 0 .65rem rgba(255,122,24,.4);
}
.composer-rail .sy-comp-ai[hidden] + .send-btn { margin-top: auto; }
.composer-rail .send-btn,
.composer-wrap .send-btn {
  width: 2.35rem;
  height: 2.35rem;
  background: #00CAE0;
  box-shadow: 0 0 .7rem rgba(0,202,224,.4);
}
.composer-wrap[data-comp-type="chat"] [data-sy-comp="camera"],
.composer-wrap[data-comp-type="audio"] [data-sy-comp="camera"],
.composer-wrap[data-comp-type="chat"] [data-sy-comp="works"],
.composer-wrap[data-comp-type="audio"] [data-sy-comp="works"] { display: none !important; }
.composer-wrap[data-comp-type="video"] [data-sy-comp="input"],
.composer-wrap[data-comp-type="image"] [data-sy-comp="input"] { display: none !important; }

html[data-theme="light"] .composer-wrap .composer { background: #fff; border-color: rgba(15,20,25,.06); }
html[data-theme="light"] .sy-comp-hint-voice { color: rgba(15,20,25,.48); }
html[data-theme="light"] .sy-comp-hint-body { color: rgba(15,20,25,.38); }
html[data-theme="light"] .sy-comp-rail-btn,
html[data-theme="light"] .composer-rail > .help-fab {
  background: #fff; color: #5b6570; border-color: rgba(15,20,25,.1);
}
html[data-theme="light"] .sy-comp-price { background: #fff; }
html[data-theme="light"] .sy-comp-aside-div { background: rgba(15,20,25,.1); }
html[data-theme="light"] .sy-comp-chip { background: #F3F4F6; color: #3f4752; }
html[data-theme="light"] .composer-wrap .attach-tile { color: #6b7380; border-color: rgba(15,20,25,.22); }
