:root {
  --rail-width: 56px;
  --notice-height: 35px;
  --studio-blue: #4d78ff;
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #151515;
  background: #fbfbfb;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #4e77ff; outline-offset: 3px; }
:is(#home,#workspace):focus { outline: none; }
.home-announcement {
  position: relative; z-index: 5; min-height: var(--notice-height);
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 5px 18px 6px; margin-left: 3px; border-radius: 4px 0 0;
  color: white; font-size: 14px; line-height: 20px; text-align: center; font-weight: 600;
  background: linear-gradient(105deg,#9772ee 0%,#6db4f4 21%,#559ce9 54%,#4b8ee2 100%);
}
.home-announcement a { color: #fff284; font-weight: 700; text-underline-offset: 2px; }
.home-announcement [data-icon] { display: inline-flex; }
.home-announcement svg { width: 19px; height: 19px; }
.studio-rail {
  position: fixed; top: var(--notice-height); bottom: 0; left: 3px; z-index: 9;
  width: calc(var(--rail-width) - 3px); background: #f9f9f9;
  border-left: 1px solid #dedede; border-right: 1px solid #eee;
  display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: 8px 0 6px;
}
.rail-nav { width: 100%; display: grid; justify-items: center; gap: 16px; }
.rail-button, .rail-account, .home-agent { text-decoration: none; display: grid; place-items: center; }
.rail-button {
  position: relative; width: 36px; height: 36px; border-radius: 11px; color: #181818;
}
.rail-button svg { width: 20px; height: 20px; }
.rail-button:is(:hover,:focus-visible), .rail-button[aria-current="page"] { background: #eaeaea; }
.rail-button::after {
  content: attr(aria-label); pointer-events: none; opacity: 0; transform: translateX(-3px);
  position: absolute; left: calc(100% + 12px); top: 50%; margin-top: -14px;
  white-space: nowrap; padding: 6px 10px; border-radius: 6px; font-size: 12px; color: white; background: #222;
}
.rail-button:is(:hover,:focus-visible)::after { opacity: 1; transform: translateX(0); transition: .15s; }
.rail-footer { display: flex; flex-direction: column; gap: 22px; align-items: center; }
.rail-library { display: grid; gap: 4px; color: #4e78f7; font-size: 11px; text-decoration: none; text-align: center; }
.rail-library span { color: #333; font-size: 10px; }
.rail-account { width: 32px; height: 32px; border-radius: 50%; border: 1px solid #f2e6e5; background: #fff4f1; color: #ae776f; }
.rail-account svg { width: 20px; height: 20px; }
#home, #workspace { margin-left: var(--rail-width); }
#home {
  min-height: calc(100vh - var(--notice-height)); position: relative; isolation: isolate;
  padding: 0 32px 70px; background: #fcfcfc; overflow: clip;
}
#home::before {
  content: ""; z-index: -1; position: absolute; pointer-events: none;
  top: -170px; left: 50%; width: min(100%, 1020px); height: 395px; transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 35%,rgba(181,211,250,.56),rgba(217,232,252,.32) 37%,rgba(247,249,252,0) 70%);
}
.home-agent { position: absolute; right: -5px; top: 20px; width: 37px; height: 36px; border: 1px solid #eaeaea; border-radius: 11px; background: #fcfcfc; }
.home-agent svg { width: 15px; height: 15px; }
.home-hero { text-align: center; padding-top: 94px; }
.home-hero h1 { margin: 0; color: #111; font-weight: 700; font-size: 30px; line-height: 41px; letter-spacing: -.8px; }
.home-hero h1 span { color: #4e76fc; }
.home-compose {
  width: min(840px, 100%); margin: 61px auto 0; text-align: left; background: white;
  border: 1px solid #eeeeef; border-radius: 31px; position: relative;
  padding: 10px 12px; box-shadow: 0 5px 29px rgba(0,0,0,.085);
}
.home-compose:focus-within { border-color: #d7e1ff; }
.home-compose-line { display: flex; align-items: center; gap: 7px; min-height: 38px; }
.home-compose-line button, .home-shortcut-icon { display: inline-grid; place-items: center; }
.home-compose-line button { border: 0; padding: 0; flex: none; cursor: pointer; background: transparent; color: #1c1c1c; }
.home-compose-line button:is(:hover,:focus-visible):not(:disabled) { background: #f0f1f3; }
.home-compose-line .compose-add { width: 32px; height: 32px; border-radius: 50%; }
.compose-add svg { width: 21px; height: 21px; }
#home-prompt {
  flex: 1; min-width: 0; color: #202124; border: 0; resize: none; outline: 0; font-size: 14px;
  line-height: 24px; padding: 0 1px; max-height: 108px; background: transparent;
}
#home-prompt::placeholder { color: #b8b8bb; opacity: 1; }
.home-compose-line .compose-microphone { width: 31px; height: 32px; border-radius: 50%; color: #666; }
.compose-microphone svg { width: 17px; height: 17px; }
.compose-microphone[aria-pressed="true"] { color: #e45060; }
.home-compose-line .compose-send { width: 32px; height: 32px; border-radius: 50%; color: white; background: #222; }
.home-compose-line .compose-send:is(:hover,:focus-visible):not(:disabled) { background: #434343; }
.home-compose-line .compose-send:disabled { background: #b1b1b1; cursor: default; }
.compose-send svg { width: 21px; height: 21px; }
.home-compose-line [data-icon], .rail-account [data-icon],.home-agent [data-icon] { display: flex; }
.home-file-list:empty { display: none; }
.home-file-list { display: flex; flex-wrap: wrap; gap: 6px; padding: 3px 8px 8px; }
.home-file-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 240px; border: 1px solid #e6e8ed; border-radius: 9px; padding: 4px 7px; font-size: 12px; background: #f7f8fa; }
.home-file-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-file-chip button { border: 0; background: none; cursor: pointer; color: #555; padding: 3px; }
.home-file-chip svg { width: 13px; height: 13px; display: block; }
.home-mentions { position: absolute; z-index: 5; top: calc(100% + 6px); left: 45px; min-width: 180px; border: 1px solid #e8e8ea; border-radius: 12px; background: white; box-shadow: 0 8px 24px #0001; padding: 6px; }
.home-mentions button { display: block; width: 100%; color: #171717; background: transparent; border: 0; padding: 8px; border-radius: 7px; text-align: left; cursor: pointer; }
.home-mentions button:hover { background: #f2f4fa; }
.home-shortcuts { width: min(840px, 100%); display: grid; grid-template-columns: repeat(7,1fr); margin: 48px auto 0; }
.home-shortcut { display: flex; flex-direction: column; align-items: center; gap: 15px; color: #171717; font-size: 14px; line-height: 21px; white-space: nowrap; text-decoration: none; }
.home-shortcut-icon { width: 48px; height: 48px; background: #fff; border: 1px solid #eee; border-radius: 16px; transition: transform .15s, box-shadow .15s; }
.home-shortcut:hover .home-shortcut-icon { transform: translateY(-2px); box-shadow: 0 5px 14px #0001; }
.home-shortcut svg { width: 22px; height: 22px; }
.home-body { max-width: 1744px; margin: 0 auto; }
.home-section-title { display: flex; align-items: baseline; gap: 15px; margin: 0 0 16px; }
.home-section-title h2 { margin: 0; font-size: 20px; line-height: 28px; letter-spacing: -.65px; }
.home-section-title p { margin: 0; font-size: 12px; color: #737375; }
.home-goals { margin-top: 63px; }
.home-goal-grid { display: grid; grid-template-columns: 1.02fr 1fr 1fr 1fr; grid-template-rows: repeat(2,1fr); grid-template-areas: "viral product commerce local" "viral brand story image"; gap: 12px; }
.home-goal { min-width: 0; overflow: hidden; text-decoration: none; border-radius: 12px; border: 1px solid #eee; background: white; display: flex; align-items: center; padding: 6px; gap: 12px; }
.home-goal:hover { border-color: #d2d9ef; box-shadow: 0 4px 16px #00000008; }
.home-goal-cover { display: block; width: 44%; align-self: stretch; flex-shrink: 0; border-radius: 9px; object-fit: cover; }
.home-goal-copy { min-width: 0; text-align: left; }
.home-goal strong { display: block; color: #121212; font-size: 14px; line-height: 21px; }
.home-goal small { display: block; margin-top: 4px; font-size: 12px; line-height: 18px; color: #666; }
.home-goal-feature { position: relative; grid-row: span 2; border-radius: 16px; border: 0; padding: 0; align-items: stretch; aspect-ratio: 16 / 9; }
.home-goal-feature .home-goal-cover { width: 100%; position: absolute; inset: 0; height: 100%; }
.home-goal-feature .home-goal-copy { position: relative; margin-top: auto; padding: 16px 15px 22px; width: 100%; background: linear-gradient(transparent,rgba(0,0,0,.16)); }
.home-goal-feature strong { color: #fff; font-size: 20px; font-weight: 700; line-height: 26px; }
.home-goal-feature small { color: #fff; margin-top: 1px; }
.home-discover { margin-top: 104px; }
.home-filters { display: flex; align-items: center; gap: 4px; margin-bottom: 16px; }
.home-filter { border: 0; background: transparent; cursor: pointer; color: #929297; font-size: 14px; line-height: 20px; border-radius: 20px; padding: 3px 14px; }
.home-filter[aria-pressed="true"] { color: #101010; background: #eaeaea; }
.home-filter:hover { color: #222; }
.home-gallery { display: grid; grid-template-columns: repeat(var(--gallery-columns,5),minmax(0,1fr)); gap: 8px; align-items: start; }
.home-gallery-col { display: grid; gap: 8px; min-width: 0; }
.home-status { position: fixed; z-index: 40; bottom: 24px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 32px); border-radius: 10px; padding: 10px 15px; color: #fff; background: #222; font-size: 14px; box-shadow: 0 4px 18px #0002; }

@media(min-width:1900px){
  html:has(#home:not([hidden])) { scrollbar-width: none; }
  #home { padding-left: 62px; }
  #home::before { background: radial-gradient(ellipse at 50% 42%,rgba(181,211,250,.44),rgba(217,232,252,.35) 37%,rgba(247,249,252,0) 70%); }
  .home-announcement { padding: 2px 18px 9px 62px; letter-spacing: .1px; }
  .home-announcement svg { width: 20px; height: 20px; }
  .home-hero h1 { font-size: 29px; letter-spacing: -.7px; }
  .home-goals { margin-top: 64px; }
  .home-section-title h2 { letter-spacing: -.1px; }
  .home-goal-grid { grid-template-columns: 25% repeat(3,minmax(0,1fr)); }
  .home-goal-feature { margin-right: 4px; }
}
@media(max-width:1400px){
  .home-hero { padding-top: 72px; } .home-compose { margin-top: 45px; }
  .home-goals { margin-top: 52px; }
  .home-discover { margin-top: 78px; }
  .home-goal { gap: 9px; } .home-goal small { font-size: 12px; }
}
@media(max-width:1050px){
  .home-goal-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .home-goal-feature { height: 100%; aspect-ratio: auto; }
  .home-goal-cover { width: 36%; min-height: 60px; }
  .home-goal-copy small { line-height: 16px; }
}
@media(max-width:800px){
  #home { padding-inline: 20px; } .home-announcement { font-size: 12px; }
  .home-hero { padding-top: 64px; } .home-hero h1 { font-size: 24px; line-height: 1.4; }
  .home-compose { margin-top: 35px; } .home-shortcuts { margin-top: 30px; }
  .home-shortcut { gap: 8px; font-size: 13px; } .home-shortcut-icon { width: 43px; height: 43px; }
  .home-goal-grid { grid-template-columns: repeat(2,1fr); grid-template-rows: auto; grid-auto-flow: row; gap: 8px; }
  .home-goal-feature { grid-row: auto; grid-column: 1/-1; aspect-ratio: 3/1; }
  .home-goal-feature .home-goal-cover { object-position: center 34%; }
  .home-goal-cover { width: 39%; min-height: 62px; }
  .home-discover { margin-top: 45px; } .home-goals { margin-top: 38px; }
}
@media(max-width:600px){
  :root { --rail-width: 0px; --notice-height: 31px; }
  .home-announcement { margin-left: 0; padding: 5px 8px; overflow: hidden; min-height: 31px; white-space: nowrap; gap: 5px; justify-content: flex-start; font-size: 11px; }
  .home-announcement > span:last-child { overflow: hidden; text-overflow: ellipsis; }
  .home-announcement svg { width: 14px; height: 14px; }
  .studio-rail { border: 0; border-top: 1px solid #e8e8ea; flex-direction: row; position: fixed; inset: auto 0 0; width: 100%; height: calc(55px + env(safe-area-inset-bottom)); padding: 0 8px env(safe-area-inset-bottom); background: #fffffff5; }
  .rail-nav { display: flex; justify-content: space-around; gap: 0; } .rail-footer { display: none; }
  .rail-button { width: 40px; height: 36px; } .rail-button::after { display: none; }
  #home { padding: 0 14px 80px; } #workspace { padding-bottom: 65px; }
  .home-hero { padding-top: 48px; }
  .home-hero h1 { font-size: clamp(19px,4.65vw,25px); letter-spacing: -.6px; }
  .home-agent { width: 26px; height: 26px; top: 8px; right: 7px; border-radius: 8px; }
  .home-compose { padding: 6px; margin-top: 24px; }
  .home-compose-line { gap: 2px; } #home-prompt { font-size: 13px; }
  .home-shortcuts { overflow-x: auto; grid-template-columns: repeat(7,minmax(58px,1fr)); padding-bottom: 4px; scrollbar-width: thin; margin-top: 24px; }
  .home-shortcut { font-size: 12px; } .home-shortcut-icon { width: 39px; height: 39px; border-radius: 13px; }
  .home-shortcut svg { width: 19px; height: 19px; }
  .home-goals { margin-top: 30px; } .home-section-title { gap: 8px; margin-bottom: 12px; } .home-section-title h2 { font-size: 18px; }
  .home-goal { padding: 4px; gap: 6px; border-radius: 10px; } .home-goal:not(.home-goal-feature) { min-height: 66px; }
  .home-goal-feature { padding: 0; aspect-ratio: 2.15; } .home-goal-feature .home-goal-copy { padding: 12px; }
  .home-goal-cover { width: 34%; min-height: 52px; }
  .home-goal:not(.home-goal-feature) strong { font-size: 13px; } .home-goal small { margin-top: 1px; font-size: 11px; }
  .home-discover { margin-top: 34px; } .home-filters { margin-bottom: 11px; }
  .home-status { bottom: 68px; }
}
@media(prefers-reduced-motion:reduce){ *, *::after, *::before { transition-duration: 0s !important; } }

.home-goal-viral { grid-area: viral; }
.home-goal-product { grid-area: product; }
.home-goal-commerce { grid-area: commerce; }
.home-goal-local { grid-area: local; }
.home-goal-brand { grid-area: brand; }
.home-goal-story { grid-area: story; }
.home-goal-image { grid-area: image; }

.home-goal-cover { position: relative; overflow: hidden; background-position: center; background-size: cover; }
.home-goal-cover img,.home-goal-cover video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.home-goal-cover [hidden] { display:none; }
@media (max-width: 800px) {
  .home-goal-grid { grid-template-areas: none; }
  .home-goal-grid .home-goal { grid-area: auto; }
  .home-goal-grid .home-goal-feature { grid-column: 1/-1; }
}
