/* ---------------- home ---------------- */
.home-page { flex: 1; display: block; overflow: hidden; }
.home-scroll { height: 100%; overflow-y: auto; padding: 0 40px 34px; }
.home-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 30px 2px 22px; }
.home-date { font-size: 9.5px; letter-spacing: 1.6px; color: #A9AEB8; text-transform: uppercase; }
.home-hello h1 { font-size: 26px; font-weight: 600; letter-spacing: -.4px; margin-top: 8px; }
.home-hello p { font-size: 12px; color: #8A909B; margin-top: 4px; }
.home-tools { display: flex; align-items: center; gap: 9px; }
.ghost-pill {
  height: 34px; padding: 0 13px; border-radius: 999px;
  border: 1px solid #E5E8EE; background: #fff; color: #4B5160;
  display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px;
}
.ghost-pill:hover { background: #F7F8FA; }
.ghost-pill .icon { width: 14px; height: 14px; }
.credit-pill {
  height: 34px; padding: 0 13px; border-radius: 999px;
  border: 1px solid #E9ECF1; background: #F7F8FA; color: #4B5160;
  display: inline-flex; align-items: center; gap: 5px; font-size: 11px;
}
.credit-pill .icon { width: 13px; height: 13px; color: #B8935A; }
.credit-pill b { color: #23272E; font-size: 12px; }
.avatar-btn {
  width: 36px; height: 36px; border-radius: 50%; background: #17181C;
  color: #fff; display: grid; place-items: center; font-size: 13px;
}

.home-hero {
  display: grid; grid-template-columns: 1.12fr .88fr; gap: 20px;
  background: linear-gradient(118deg, #F1F5FC 0%, #F8F6F1 54%, #F4EFE7 100%);
  border: 1px solid #EDEFF3; border-radius: 20px;
  padding: 36px 38px; position: relative; overflow: hidden;
}
.home-hero::after {
  content: ""; position: absolute; right: -80px; top: -120px; width: 340px; height: 340px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .8), transparent 68%);
}
.hero-copy { position: relative; z-index: 2; }
.hero-copy .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 9.5px; letter-spacing: 2px; color: #7A808B;
}
.hero-copy .eyebrow i { width: 20px; height: 1px; background: var(--accent); }
.hero-copy h2 { font-size: 36px; line-height: 1.3; font-weight: 600; letter-spacing: -1px; margin: 16px 0 12px; }
.hero-copy > p { font-size: 12.5px; color: #6E7480; line-height: 1.85; max-width: 430px; }
.hero-form {
  margin-top: 22px; display: flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid #E7EAF0; border-radius: 12px;
  padding: 7px 7px 7px 12px; max-width: 560px;
  box-shadow: 0 10px 26px rgba(16, 24, 40, .06);
}
.hf-icon { color: #A9B4C6; display: grid; place-items: center; }
.hf-icon .icon { width: 16px; height: 16px; }
.hero-form input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 12px; color: #23272E; height: 36px; }
.hero-form input::placeholder { color: #AEB4BE; }
.hero-form button {
  height: 38px; padding: 0 15px; border: 0; border-radius: 9px;
  background: #17181C; color: #fff; font-size: 12px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
}
.hero-form button:hover { background: #2B2D33; }
.hero-form button .icon { width: 14px; height: 14px; }
.hero-hints { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.hero-hints > span { font-size: 10px; color: #A9AEB8; }
.hero-hints button {
  border: 1px solid #E9ECF1; background: rgba(255, 255, 255, .7);
  border-radius: 999px; padding: 4px 10px; font-size: 10px; color: #6E7480;
}
.hero-hints button:hover { border-color: #C9D3E5; color: var(--accent); }

.hero-art { position: relative; min-height: 300px; }
.ha { position: absolute; border-radius: 14px; overflow: hidden; border: 4px solid #fff; box-shadow: 0 20px 44px rgba(16, 24, 40, .16); }
.ha img { width: 100%; height: 100%; object-fit: cover; }
.ha-1 { width: 188px; height: 244px; right: 42px; top: 18px; transform: rotate(3deg); z-index: 3; }
.ha-2 { width: 146px; height: 186px; left: 4px; top: 58px; transform: rotate(-7deg); z-index: 2; }
.ha-3 { width: 118px; height: 146px; right: 208px; bottom: 4px; transform: rotate(-4deg); z-index: 1; }
.ha-badge {
  position: absolute; top: 4px; right: 8px; z-index: 4;
  background: #fff; border-radius: 999px; padding: 6px 11px;
  font-size: 9.5px; color: #3F4550; display: inline-flex; align-items: center; gap: 4px;
  box-shadow: 0 6px 16px rgba(16, 24, 40, .12);
}
.ha-badge .icon { width: 11px; height: 11px; color: #B8935A; }
.ha-caption { position: absolute; bottom: 2px; right: 2px; z-index: 4; font-size: 9.5px; color: #98A0AC; }

.home-stats { display: grid; grid-template-columns: repeat(3, .72fr) 1.5fr; gap: 10px; margin-top: 16px; }
.stat { display: flex; align-items: center; gap: 11px; background: #fff; border: 1px solid #EDEFF3; border-radius: 13px; padding: 14px 16px; }
.stat-ico { width: 34px; height: 34px; border-radius: 9px; background: #F4F6F9; color: #6E7480; display: grid; place-items: center; flex: none; }
.stat-ico .icon { width: 16px; height: 16px; }
.stat b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.2px; }
.stat small { display: block; font-size: 10px; color: #9AA0AA; margin-top: 1px; }
.stat.wide { justify-content: space-between; gap: 12px; background: #17181C; border-color: #17181C; }
.stat.wide .stat-copy b { color: #fff; font-size: 12px; font-weight: 500; }
.stat.wide .stat-copy small { color: rgba(255, 255, 255, .55); font-size: 10px; margin-top: 4px; line-height: 1.5; }
.stat-link {
  display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px;
  color: #fff; border: 1px solid rgba(255, 255, 255, .24);
  padding: 7px 11px; border-radius: 8px; white-space: nowrap;
}
.stat-link .icon { width: 12px; height: 12px; }

.home-section { margin-top: 32px; }
.home-section > header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.home-section h3 { font-size: 17px; font-weight: 600; letter-spacing: -.2px; }
.home-section header p { font-size: 11px; color: #9AA0AA; margin-top: 4px; }
.more-link { display: inline-flex; align-items: center; gap: 2px; font-size: 11px; color: #8A909B; white-space: nowrap; }
.more-link:hover { color: #23272E; }
.more-link .icon { width: 13px; height: 13px; }
.hgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; margin-top: 14px; }
.hcard {
  display: flex; align-items: center; gap: 11px;
  border: 1px solid #EDEFF3; border-radius: 13px; padding: 9px;
  background: #fff; transition: transform .16s, box-shadow .16s, border-color .16s;
  min-width: 0;
}
.hcard:hover { transform: translateY(-2px); border-color: #E0E4EA; box-shadow: 0 12px 26px rgba(16, 24, 40, .07); }
.hcard-art { width: 78px; height: 78px; border-radius: 9px; overflow: hidden; position: relative; flex: none; background: #F4F5F7; }
.hcard-art img { width: 100%; height: 100%; object-fit: cover; }
.hcard-kind {
  position: absolute; right: 4px; bottom: 4px; width: 18px; height: 18px;
  border-radius: 50%; background: rgba(255, 255, 255, .92); color: #3F4550;
  display: grid; place-items: center;
}
.hcard-kind .icon { width: 10px; height: 10px; }
.hcard-copy { min-width: 0; }
.hcard-copy b { display: block; font-size: 12.5px; font-weight: 600; }
.hcard-copy small { display: block; font-size: 10.5px; color: #9AA0AA; margin-top: 3px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hcard--more { border-style: dashed; background: #FAFBFC; justify-content: center; }
.hcard-more-inner { display: flex; flex-direction: column; align-items: center; gap: 4px; color: #8A909B; text-align: center; }
.hcard-more-inner .icon { width: 20px; height: 20px; }
.hcard-more-inner b { font-size: 11.5px; font-weight: 500; color: #4B5160; }
.hcard-more-inner small { font-size: 9.5px; color: #A9AEB8; }

.recent-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 11px; margin-top: 14px; }
.recent-card { border: 0; background: none; padding: 0; text-align: left; }
.recent-art { display: block; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; position: relative; background: #F4F5F7; }
.recent-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.recent-card:hover .recent-art img { transform: scale(1.04); }
.type-dot { position: absolute; left: 8px; bottom: 8px; width: 22px; height: 22px; border-radius: 50%; background: rgba(23, 24, 28, .66); color: #fff; display: grid; place-items: center; }
.type-dot .icon { width: 10px; height: 10px; }
.recent-meta { display: block; margin-top: 7px; }
.recent-meta b { display: block; font-size: 11px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-meta small { display: block; font-size: 9.5px; color: #A9AEB8; margin-top: 2px; }
.recent-add {
  border: 1px dashed #DDE2E9; border-radius: 12px; min-height: 150px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  color: #A9AEB8; font-size: 10.5px; background: #FAFBFC;
}
.recent-add .icon { width: 20px; height: 20px; }
.recent-add:hover { border-color: #C9D2E3; color: #6E7480; }
.home-foot { display: flex; align-items: center; gap: 12px; margin-top: 40px; padding: 18px 2px 0; border-top: 1px solid #F1F3F6; font-size: 10px; color: #A9AEB8; }
.home-foot > span:first-child { color: #4B5160; font-weight: 600; letter-spacing: .5px; }
.home-foot p { flex: 1; }

/* ---------------- chat ---------------- */
.chat-wrap { display: flex; gap: 12px; flex: 1; min-width: 0; }
.chat-side { width: 300px; flex: none; padding: 0; }
.chat-side.is-collapsed { display: none; }
.cs-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 18px 10px; }
.cs-head h2 { font-size: 14px; font-weight: 600; }
.new-chat {
  margin: 4px 14px 14px; height: 40px; border: 1px solid #EEF0F4; border-radius: 10px;
  background: #FAFBFC; display: flex; align-items: center; gap: 8px; padding: 0 11px;
  font-size: 12px; color: #3F4550; text-align: left;
}
.new-chat:hover { background: #F5F7FA; }
.nc-ico { width: 24px; height: 24px; border-radius: 7px; background: #fff; border: 1px solid #EEF0F4; display: grid; place-items: center; color: #7A808B; }
.nc-ico .icon { width: 13px; height: 13px; }
.history-list { flex: 1; overflow-y: auto; padding: 0 10px; }
.history-item { width: 100%; border: 0; background: none; text-align: left; padding: 10px; border-radius: 8px; display: flex; flex-direction: column; gap: 3px; }
.history-item:hover { background: #F7F8FA; }
.hi-title { font-size: 11.5px; color: #3F4550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-item small { font-size: 9.5px; color: #A9AEB8; }
.history-empty { text-align: center; padding: 46px 14px; color: #C3C8D1; }
.history-empty .icon { width: 22px; height: 22px; margin-bottom: 8px; }
.history-empty p { font-size: 11px; color: #8A909B; }
.history-empty small { font-size: 9.5px; color: #B0B5BE; line-height: 1.5; display: block; margin-top: 4px; }
.cs-foot { border-top: 1px solid #F3F4F7; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; font-size: 10.5px; color: #9AA0AA; }
.cs-foot span { display: inline-flex; align-items: center; gap: 4px; }
.cs-foot .icon { width: 12px; height: 12px; color: #B8935A; }
.cs-foot a { color: var(--accent); }

.chat-main { flex: 1; min-width: 0; position: relative; }
.cm-head { height: 54px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 24px; border-bottom: 1px solid #F4F5F7; }
.cm-title { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
.cm-dot { width: 6px; height: 6px; border-radius: 50%; background: #35B37E; box-shadow: 0 0 0 3px rgba(53, 179, 126, .12); }
.cm-model { margin-left: auto; font-size: 10.5px; color: #A9AEB8; }
.chat-scroll { position: absolute; top: 54px; bottom: 0; left: 0; right: 0; overflow-y: auto; padding: 20px 24px 190px; }
.chat-hero { max-width: 640px; margin: 9vh auto 0; text-align: center; }
.chat-orb {
  width: 56px; height: 56px; border-radius: 18px; margin: 0 auto 4px;
  background: linear-gradient(140deg, #EAF1FF, #F7F2E9);
  display: grid; place-items: center; position: relative;
  box-shadow: 0 14px 32px rgba(61, 109, 245, .1);
}
.chat-orb::before { content: ""; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid rgba(61, 109, 245, .5); }
.chat-orb::after { content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); right: 15px; top: 15px; }
.chat-hero h1 { font-size: 30px; font-weight: 600; letter-spacing: -.6px; margin-top: 20px; }
.chat-hero p { font-size: 12.5px; color: #8A909B; margin-top: 8px; }
.chat-suggest { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 24px; }
.chat-suggest button {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid #EDEFF3; background: #fff; border-radius: 999px;
  padding: 9px 14px; font-size: 11px; color: #4B5160;
}
.chat-suggest button:hover { border-color: #C9D3E5; color: var(--accent); }
.chat-suggest .icon { width: 13px; height: 13px; color: #8A909B; }

.chat-thread { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.msg { display: flex; gap: 10px; align-items: flex-start; }
.msg-user { justify-content: flex-end; }
.msg-avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 11px; }
.msg-avatar.ai { background: #17181C; color: #fff; }
.msg-avatar.ai .icon { width: 14px; height: 14px; }
.msg-avatar.me { background: #EBEFF6; color: #4B5160; }
.msg-body { max-width: 640px; }
.msg-bubble {
  background: #F4F6F9; border-radius: 4px 14px 14px 14px;
  padding: 11px 14px; font-size: 12.5px; line-height: 1.8; color: #2E333B;
}
.msg-user .msg-bubble { background: #17181C; color: #fff; border-radius: 14px 4px 14px 14px; }
.msg-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.msg-actions button {
  border: 1px solid #E7EAF0; background: #fff; border-radius: 7px;
  padding: 6px 9px; font-size: 10.5px; color: #4B5160;
  display: inline-flex; align-items: center; gap: 3px;
}
.msg-actions button:hover { border-color: #C9D3E5; color: var(--accent); }
.msg-actions .icon { width: 12px; height: 12px; }
.chat-typing { align-items: center; }
.typing-bubble { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: #8A909B; padding: 10px 0; }
.typing-bubble span { width: 5px; height: 5px; border-radius: 50%; background: #A9AEB8; animation: typing 1.2s infinite ease-in-out; }
.typing-bubble span:nth-child(2) { animation-delay: .18s; }
.typing-bubble span:nth-child(3) { animation-delay: .36s; }
@keyframes typing { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }

.chat-dock { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 24px 18px; background: linear-gradient(transparent, #fff 30%); }
.chat-composer {
  max-width: 880px; margin: 0 auto; display: flex; gap: 10px;
  background: #fff; border: 1px solid #E9ECF1; border-radius: 16px;
  padding: 12px; box-shadow: 0 14px 40px rgba(16, 24, 40, .09);
}
.chat-composer:focus-within { border-color: #CBD6EC; }
.cc-plus {
  width: 58px; height: 58px; border-radius: 12px; border: 0; flex: none;
  background: linear-gradient(135deg, #EAF2FF, #DDEBFF);
  color: #3D6DF5; display: grid; place-items: center;
}
.cc-plus .icon { width: 20px; height: 20px; }
.cc-field { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cc-field textarea {
  width: 100%; border: 0; outline: 0; resize: none; background: transparent;
  min-height: 42px; max-height: 120px; font-size: 12.5px; line-height: 1.7; padding: 3px 2px;
}
.cc-field textarea::placeholder { color: #AEB4BE; }
.cc-foot { display: flex; align-items: center; gap: 6px; }
.cc-cost { margin-right: auto; display: inline-flex; align-items: center; gap: 3px; font-size: 10px; color: #A9AEB8; }
.cc-cost .icon { width: 11px; height: 11px; color: #B8935A; }
.cc-send {
  width: 34px; height: 34px; border-radius: 50%; border: 0;
  background: #17181C; color: #fff; display: grid; place-items: center;
}
.cc-send .icon { width: 16px; height: 16px; }
.chat-disclaimer { text-align: center; font-size: 9.5px; color: #B0B5BE; margin-top: 9px; }

/* ---------------- subtitle ---------------- */
.ws-wrap--sub .sub-editor { width: clamp(430px, 35vw, 540px); flex: none; }
.ws-wrap--sub .sub-preview { flex: 1; min-width: 0; }
.sub-drop {
  width: 100%; height: 292px; margin-top: 8px;
  border: 1px dashed #DDE2E9; border-radius: 12px; background: #FBFCFD;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 7px; color: #7A808B; position: relative; overflow: hidden; padding: 0;
}
.sub-drop:hover { border-color: #B9C2CF; background: #F7F9FB; }
.sub-drop b { font-size: 13.5px; color: #2E333B; font-weight: 600; margin-top: 4px; }
.sub-drop small { font-size: 10.5px; color: #A9AEB8; }
.sub-drop video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #0F1013; }
.sub-drop.has-file { border-style: solid; border-color: #E5E8EE; }
.sub-file {
  position: absolute; left: 10px; bottom: 10px;
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(23, 24, 28, .72); color: #fff; border-radius: 5px;
  padding: 5px 8px; font-size: 9.5px; max-width: 78%;
}
.sub-file .icon { width: 11px; height: 11px; }
.sub-box {
  position: absolute; left: 14%; top: 62%; width: 70%; height: 22%;
  border: 1.5px dashed rgba(255, 255, 255, .85); border-radius: 4px;
  box-shadow: 0 0 0 9999px rgba(15, 16, 19, .18);
}
.steps-card { margin-top: 14px; border: 1px solid #EEF0F4; border-radius: 12px; padding: 15px 17px; }
.steps-card h3 { font-size: 12px; font-weight: 600; }
.steps { margin-top: 12px; display: flex; flex-direction: column; gap: 13px; }
.steps li { display: flex; gap: 10px; }
.step-no {
  width: 18px; height: 18px; border-radius: 50%; background: #F2F4F7; color: #7A808B;
  font-size: 9px; display: grid; place-items: center; flex: none; margin-top: 1px;
}
.steps b { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: #3F4550; }
.steps b .icon { width: 12px; height: 12px; color: #8A909B; }
.steps p { font-size: 10px; color: #A0A6B0; line-height: 1.7; margin-top: 2px; }
.sub-preview .preview-body { justify-content: center; align-items: center; }
.preview-body--center { justify-content: center; }
.preview-empty { text-align: center; color: #C3C8D1; }
.preview-empty .icon { width: 34px; height: 34px; margin: 0 auto 14px; }
.preview-empty p { font-size: 11.5px; color: #9AA0AA; }
.sub-player { width: 100%; max-width: 640px; aspect-ratio: 16 / 9; background: #0F1013; border-radius: 12px; position: relative; overflow: hidden; }
.sub-player video { width: 100%; height: 100%; object-fit: contain; }
.processing-chip, .ready-chip {
  position: absolute; left: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(23, 24, 28, .78); color: #fff; font-size: 10px;
  border-radius: 6px; padding: 6px 10px;
}
.processing-chip .icon { width: 12px; height: 12px; animation: spin 1.2s linear infinite; }
.ready-chip .icon { width: 12px; height: 12px; color: #9FD3B5; }
.sub-select {
  position: absolute; left: 16%; top: 64%; width: 68%; height: 20%;
  border: 1.5px dashed rgba(255, 255, 255, .9); border-radius: 4px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- assets ---------------- */
.assets-page { flex: 1; display: block; overflow-y: auto; padding: 30px 36px 40px; }
.assets-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.assets-head h1 { font-size: 26px; font-weight: 600; letter-spacing: -.4px; }
.assets-head p { font-size: 11.5px; color: #9AA0AA; margin-top: 6px; }
.assets-head-right { display: flex; align-items: center; gap: 10px; }
.assets-count { font-size: 10.5px; color: #A9AEB8; }
.folders { display: flex; gap: 18px; margin-top: 24px; }
.folder { width: 170px; border: 0; background: none; padding: 0; text-align: left; display: flex; flex-direction: column; gap: 7px; }
.folder-art {
  width: 100%; height: 94px; border-radius: 12px;
  background: linear-gradient(135deg, #F3F5F9, #E8EDF4);
  display: grid; place-items: center; position: relative; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .7);
}
.folder-art { transition: transform .18s; }
.folder:hover .folder-art { transform: translateY(-2px); }
.folder--new .folder-art b { font-size: 28px; font-weight: 300; color: #7A808B; line-height: 1; }
.folder-art--ai { background: linear-gradient(135deg, #EAF0FF, #DDE8FF); color: #6D8BF0; }
.folder-art--ai .icon { width: 30px; height: 30px; position: relative; z-index: 2; }
.fa-glow { position: absolute; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .95), transparent 65%); top: -25px; right: -10px; }
.folder-name { font-size: 12px; font-weight: 500; color: #2E333B; }
.folder small { font-size: 9.5px; color: #A9AEB8; margin-top: -3px; }
.filterbar { display: flex; align-items: center; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.seg-tabs { display: flex; gap: 2px; background: #F2F4F7; padding: 3px; border-radius: 9px; }
.seg-tabs button { border: 0; background: transparent; border-radius: 7px; padding: 7px 12px; font-size: 11px; color: #7A808B; display: inline-flex; align-items: center; gap: 4px; }
.seg-tabs button:hover { color: #2E333B; }
.seg-tabs button.is-active { background: #fff; color: #15171B; font-weight: 500; box-shadow: 0 1px 2px rgba(16, 24, 40, .08); }
.asset-search { display: flex; align-items: center; gap: 6px; color: #A9AEB8; width: 210px; margin-left: 6px; }
.asset-search .icon { width: 15px; height: 15px; }
.asset-search input { border: 0; background: transparent; outline: 0; font-size: 11.5px; color: #2E333B; width: 100%; }
.asset-search input::placeholder { color: #B0B5BE; }
.filter-right { margin-left: auto; display: flex; gap: 8px; }
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(188px, 1fr)); gap: 18px 16px; margin-top: 18px; }
.asset-card { border: 0; background: none; padding: 0; text-align: left; display: flex; flex-direction: column; gap: 8px; }
.ac-art { display: block; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: #F4F5F7; position: relative; }
.ac-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.asset-card:hover .ac-art img { transform: scale(1.04); }
.ac-type {
  position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: center; gap: 3px;
  background: rgba(23, 24, 28, .5); color: #fff; font-size: 9px; font-style: normal;
  padding: 3px 6px; border-radius: 4px; backdrop-filter: blur(4px);
}
.ac-type .icon { width: 10px; height: 10px; }
.ac-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .9);
  color: #15171B; display: grid; place-items: center;
}
.ac-play .icon { width: 14px; height: 14px; margin-left: 2px; }
.ac-hover {
  position: absolute; inset: auto 0 0 0; padding: 26px 9px 9px;
  background: linear-gradient(transparent, rgba(15, 16, 19, .62));
  display: flex; gap: 7px; opacity: 0; transition: opacity .18s;
}
.asset-card:hover .ac-hover { opacity: 1; }
.ac-hover span { display: inline-flex; align-items: center; gap: 3px; color: #fff; font-size: 9.5px; }
.ac-hover .icon { width: 11px; height: 11px; }
.ac-meta b { display: block; font-size: 11.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-meta small { display: block; font-size: 9.5px; color: #A9AEB8; margin-top: 2px; }
.asset-add {
  border: 1.5px dashed #DDE2E9; border-radius: 12px; min-height: 250px; background: #FBFCFD;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  color: #A9AEB8;
}
.asset-add:hover { border-color: #C3CCDA; background: #F7F9FB; }
.aa-art { width: 40px; height: 40px; border-radius: 50%; background: #F1F3F7; display: grid; place-items: center; margin-bottom: 4px; }
.aa-art .icon { width: 18px; height: 18px; }
.asset-add b { font-size: 11px; font-weight: 500; color: #4B5160; }
.asset-add small { font-size: 9.5px; color: #B0B5BE; }
.asset-empty { grid-column: 1 / -1; text-align: center; padding: 60px 0; color: #C3C8D1; }
.asset-empty .icon { width: 26px; height: 26px; margin: 0 auto 10px; }
.asset-empty p { font-size: 12px; color: #8A909B; }
.asset-empty small { font-size: 10px; color: #B0B5BE; }

/* ---------------- editor ---------------- */
.editor-page { flex: 1; padding: 0; overflow: hidden; }
.editor-top { height: 52px; flex: none; display: flex; align-items: center; padding: 0 18px; border-bottom: 1px solid #F1F3F6; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #2E333B; }
.back-link .icon { width: 16px; height: 16px; }
.editor-top-right { margin-left: auto; display: flex; gap: 8px; }
.editor-main { flex: 1; min-height: 0; display: grid; grid-template-columns: 292px 1fr 272px; gap: 12px; padding: 12px 14px; }
.media-panel { border: 1px solid #EEF0F4; border-radius: 12px; display: flex; overflow: hidden; background: #fff; }
.mp-rail { width: 42px; flex: none; background: #FAFBFC; border-right: 1px solid #F1F3F6; display: flex; flex-direction: column; align-items: center; padding-top: 10px; gap: 6px; }
.mp-rail button {
  writing-mode: vertical-rl; border: 0; background: none; padding: 10px 5px;
  font-size: 10px; color: #A0A6B0; letter-spacing: 3px; border-radius: 6px;
}
.mp-rail button.is-active { background: #fff; color: #2E333B; }
.mp-body { flex: 1; padding: 13px 12px; overflow-y: auto; }
.mp-filters { display: flex; gap: 6px; }
.mini-field {
  flex: 1; height: 30px; border: 1px solid #E7EAF0; border-radius: 7px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 8px; font-size: 10px; color: #6E7480; min-width: 0;
}
.mini-field .icon { width: 12px; height: 12px; color: #A9AEB8; }
.mp-add {
  margin-top: 14px; width: 92px; height: 76px; border: 1px dashed #DDE2E9;
  border-radius: 8px; background: #fff; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px; font-size: 9.5px; color: #7A808B;
}
.mp-add:hover { background: #FAFBFC; }
.mp-add span { color: #A9AEB8; display: grid; place-items: center; }
.mp-add .icon { width: 18px; height: 18px; }
.mp-empty { font-size: 10px; color: #B0B5BE; margin-top: 28px; line-height: 1.8; }
.player { border: 1px solid #F1F3F6; border-radius: 12px; background: #F7F8FA; display: grid; place-items: center; min-width: 0; }
.player-empty, .inspector-empty { text-align: center; color: #C3C8D1; }
.player-empty .icon { width: 32px; height: 32px; margin: 0 auto 12px; }
.player-empty p, .inspector-empty p { font-size: 11px; color: #9AA0AA; }
.inspector { border: 1px solid #EEF0F4; border-radius: 12px; display: grid; place-items: center; padding: 20px; background: #fff; }
.inspector-empty .icon { width: 26px; height: 26px; margin: 0 auto 12px; }

.timeline { height: 268px; flex: none; border-top: 1px solid #EEF0F4; background: #fff; display: flex; flex-direction: column; }
.timeline-bar { height: 44px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid #F4F5F7; }
.tl-tools { display: flex; gap: 2px; }
.tl-time { margin: 0 auto; display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: #7A808B; }
.tl-time em { font-style: normal; color: #D0D4DB; }
.tl-zoom { display: flex; align-items: center; gap: 3px; }
.tl-zoom .icon-btn { width: 26px; height: 26px; }
.tl-zoom .icon-btn.is-on { background: #EEF3FF; color: var(--accent); }
.zoom-range { width: 84px; accent-color: #A9B0BB; height: 2px; }
.ruler { height: 32px; flex: none; position: relative; background: #FCFCFD; border-bottom: 1px solid #F2F4F7; overflow: hidden; }
.tick { position: absolute; bottom: 0; height: 100%; }
.tick i { position: absolute; bottom: 0; left: 0; width: 1px; height: 7px; background: #C9CED6; }
.tick span { position: absolute; top: 5px; left: 4px; font-size: 8.5px; color: #A9AEB8; }
.tick--minor i { height: 3px; background: #E3E7ED; }
.playhead { position: absolute; left: 40px; top: 0; bottom: 0; width: 1.5px; background: var(--accent); z-index: 2; }
.playhead::before { content: ""; position: absolute; top: 4px; left: -3.5px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.tracks { flex: 1; display: grid; place-items: center; background: #FCFCFD; }
.track-empty { text-align: center; color: #C3C8D1; }
.track-empty .icon { width: 20px; height: 20px; margin: 0 auto 8px; }
.track-empty p { font-size: 10.5px; color: #A9AEB8; }

/* ---------------- responsive ---------------- */
@media (max-width: 1560px) {
  .queue { width: 212px; }
  .hub-panel, .ws-editor { width: clamp(420px, 35vw, 520px); }
}
@media (max-width: 1400px) {
  .queue { display: none; }
  .home-scroll { padding: 0 26px 30px; }
  .home-hero { padding: 30px; }
  .hero-copy h2 { font-size: 32px; }
}
@media (max-width: 1180px) {
  .hub-preview, .ws-preview { display: none; }
  .hub-panel, .ws-editor { width: auto; flex: 1; }
  .home-stats { grid-template-columns: 1fr 1fr; }
  .stat.wide { grid-column: 1 / -1; }
  .hgrid { grid-template-columns: repeat(2, 1fr); }
  .recent-row { grid-template-columns: repeat(3, 1fr); }
  .editor-main { grid-template-columns: 250px 1fr; }
  .inspector { display: none; }
  .asset-modal { grid-template-columns: 1fr; max-height: 88vh; }
  .am-art { max-height: 40vh; }
}
@media (max-width: 900px) {
  .app { flex-direction: column; }
  .rail { width: 100%; height: 62px; flex-direction: row; padding: 0 10px; border-right: 0; border-top: 1px solid var(--line); order: 2; }
  .rail-logo { margin: 0 10px 0 0; }
  .rail-nav { flex-direction: row; flex: 1; justify-content: space-around; }
  .rail-item { width: 54px; padding: 7px 0 5px; }
  .rail-label { font-size: 9px; }
  .rail-foot { margin-top: 0; flex-direction: row; padding-top: 0; gap: 6px; }
  .rail-credits { display: none; }
  .stage { order: 1; height: auto; flex: 1; padding: 8px; }
  .hub-body, .ws-scroll, .home-scroll { padding-left: 14px; padding-right: 14px; }
  .home-hero { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .home-head { flex-wrap: wrap; }
  .asset-grid { grid-template-columns: repeat(2, 1fr); }
  .folders { overflow-x: auto; }
  .folder { flex: none; }
  .chat-side { display: none; }
  .editor-main { grid-template-columns: 1fr; }
  .media-panel { display: none; }
  .sub-preview { display: none; }
  .ws-wrap--sub .sub-editor { width: auto; flex: 1; }
  .chat-scroll { padding-left: 14px; padding-right: 14px; }
  .chat-dock { padding: 0 12px 12px; }
  .plan-grid { grid-template-columns: 1fr; }
  .sub-page { padding: 24px; }
}
@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
  .home-tools .ghost-pill { display: none; }
  .home-section .hgrid { grid-template-columns: 1fr; }
  .recent-row { grid-template-columns: repeat(2, 1fr); }
  .home-stats { grid-template-columns: 1fr; }
  .asset-grid { grid-template-columns: 1fr 1fr; }
  .select-row { grid-template-columns: 1fr; }
  .modules { grid-template-columns: 1fr 1fr; }
  .slots { gap: 12px; }
  .tour-card { left: 16px; right: 16px; width: auto; top: 80px; }
}
