@font-face {font-family: "Soda Display"; font-style: normal; font-weight: 900; font-display: swap; src: url("/assets/soda/display.woff2")}
:root {
  color-scheme: light;
  --ink: #301f19;
  --sub: #685a52;
  --faint: #776a61;
  --accent: #ad3f24;
  --pale: #fff0e4;
  --border: #e7dcd2;
  --canvas: #fffaf4;
  --paper: #fffdf9;
  --shadow: 0 4px 17px #5c321209;
  --coral: #fe694b;
  font: 16px/1.5 "DM Sans","PingFang SC","Microsoft YaHei",system-ui,sans-serif;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box }
:where(html, body, dialog, textarea, .ag-log, .rd-stream, .rd-original-window) { scrollbar-width: none }
:where(html, body, dialog, textarea, .ag-log, .rd-stream, .rd-original-window)::-webkit-scrollbar { display: none }
body { margin: 0 }
button, a, input, textarea, select { font: inherit }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation }
button { cursor: pointer; color: inherit; background: none; border: 0 }
button:disabled { cursor: not-allowed }
:where(button,a,input,select,textarea):focus-visible { outline: 3px solid #ac4526; outline-offset: 3px }
a { color: inherit; text-decoration: none }
svg { display: block; flex: none }
i[data-icon] { display: inline-flex; font-style: normal }
[hidden] { display: none !important }
.layout { min-height: 100vh; display: grid; grid-template-columns: 208px minmax(0,1fr) }
.work { min-width: 0 }
.work:has(:is(.ag-directory,.soda-styles,.soda-history,.member-overview)) {
  --corner-bottom: 0px;
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--canvas);
}
.work:has(:is(.ag-directory,.soda-styles,.soda-history,.member-overview))::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  right: 0;
  bottom: var(--corner-bottom);
  width: clamp(70px,8vw,100px);
  aspect-ratio: 108 / 74;
  background-color: #eed9c8;
  -webkit-mask: url('/assets/soda/agents-checks.webp') right bottom / contain no-repeat;
  mask: url('/assets/soda/agents-checks.webp') right bottom / contain no-repeat;
}
@media (max-width:700px) {
  .work:has(:is(.ag-directory,.soda-styles,.soda-history,.member-overview)) {
    --corner-bottom: calc(57px + env(safe-area-inset-bottom));
  }
}
main { margin: auto; max-width: 1150px; padding: 30px clamp(24px,4vw,64px) 56px }
.rail { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; align-self: start; padding: 31px 15px 20px; border-right: 1px solid var(--border); background: #fffdf8 }
.brand { display: flex; align-items: center; gap: 10px; margin: 0 9px }
.brand img { object-fit: contain }
.brand strong { display: block; font-size: 21px; font-weight: 800; letter-spacing: .01em }
.brand small, .profile small { display: block; font-size: 11px; color: var(--sub) }
.rail nav { display: grid; gap: 5px; margin-top: 46px }
.rail nav a, .guide { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 13px; color: #544842; font-size: 14px; font-weight: 620 }
.rail nav a:hover, .guide:hover { background: #faf1e8 }
.rail nav a.active { background: #ffe8dc; color: #ad341d }
.rail nav a.active svg { stroke-width: 2.35 }
.rail-bottom { margin-top: auto }
.guide { width: 100% }
.profile { display: flex; align-items: center; text-align: left; gap: 10px; width: 100%; margin-top: 14px; padding: 17px 5px 0; border-top: 1px solid var(--border); font-size: 13px }
.profile > span { min-width: 0; overflow-wrap: anywhere }
.profile > i:last-child { margin-left: auto }
.avatar, .tile-icon { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 12px; background: #ffebd6 }
.soda-page { max-width: 880px; margin: auto }
.soda-art { display: block; object-fit: contain; pointer-events: none; user-select: none }
.soda-page h1, .soda-page h2, .soda-page h3, .soda-page p { margin: 0 }
.soda-page h1, .soda-page h2, .tool strong { color: #291b15; font-weight: 900; line-height: 1.18; letter-spacing: -.045em }
.soda-welcome { padding: 8px 14px 0 }
.welcome-heading { display: flex; align-items: center; justify-content: space-between }
.welcome-heading h1 { font-size: clamp(52px,5.3vw,76px); line-height: 1.02; letter-spacing: -.075em; -webkit-text-stroke: .65px currentColor }
.welcome-heading h1 span { display: inline-block; padding-bottom: .10em; text-decoration: underline; text-decoration-color: #ff6d50; text-decoration-thickness: .065em; text-underline-offset: .075em }
.welcome-art { width: 32%; height: 130px; object-position: 80% 50% }
.sample-exchange { display: flex; align-items: center; flex-wrap: wrap; column-gap: 10px; row-gap: 5px; margin: 17px 0 22px; padding: 0; text-align: left; font-size: 14px }
.sample-tag { display: inline-flex; align-items: center; align-self: flex-start; color: white; background: #ba3d25; border-radius: 8px; padding: 3px 7px; font-size: .83em; font-weight: 750; transform: rotate(-5deg) }
.example-ask, .example-answer { border: 1.8px solid var(--ink); color: var(--ink); background: #fff; border-radius: 18px 18px 18px 5px; padding: 4px 13px; font-weight: 690 }
.example-answer { border-radius: 18px 18px 5px 18px; background: #ffdf71; margin-top: 9px }
.soda-tools { display: grid; grid-template-columns: 1fr 1.13fr; grid-template-areas: "scan scan" "text agent" "text style"; grid-template-rows: 220px 88px 88px; gap: 11px }
.tool { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-width: 0; width: 100%; padding: 24px; color: var(--ink); text-align: left; border-radius: 24px; transition: transform .16s,box-shadow .16s }
.tool:hover { transform: translateY(-2px); box-shadow: 0 3px 0 #48280e1a }
.tool.drag { outline: 3px dashed #ab3e23; outline-offset: -5px }
.tool-copy { position: relative; display: flex; flex-direction: column; align-items: flex-start; z-index: 1 }
.tool strong { display: block; font-size: clamp(24px,2.4vw,38px); color: var(--letter); -webkit-text-stroke: .15em #fffdf8; paint-order: stroke fill; filter: drop-shadow(0 2px 0 #39201a22) }
.tool small { display: block; margin-top: 7px; font-size: 14px; font-weight: 580 }
.tool .soda-art { position: absolute; right: 3%; width: 29%; height: 96%; top: 2%; z-index: 0 }
.tool-scan { grid-area: scan; --letter: #d64120; background-color: #ffe0c9; background-image: url('/assets/soda/account-checks.webp'); background-size: 100px auto; background-repeat: no-repeat; background-position: 56% 100%; padding-inline: 4.5% }
.tool-scan .soda-art { right: 6%; width: 39%; height: 96%; top: 2% }
.tool-scan strong { font-size: clamp(42px,4vw,61px) }
.tool-scan small { margin-top: 9px; font-size: 16px }
.upload-pill, .primary-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: fit-content; border-radius: 99px; background: #382219; color: #fffaf3; font-size: 14px; font-weight: 680; padding: 9px 17px }
.upload-pill { margin-top: 18px }
.tool-text { grid-area: text; --letter: #215eb9; background: #dceeff; align-items: flex-start }
.tool-text .soda-art { width: 47%; height: 76%; top: auto; bottom: 1%; right: 3% }
.tool-agent { grid-area: agent; --letter: #763f9d; background: #f0dff9 }
.tool-style { grid-area: style; --letter: #22622a; background: #dcf5d5 }
.soda-recent { margin-top: 23px }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 2px 10px }
.section-head h2 { font-size: 24px }
.section-head > span { font-size: 12px; color: var(--sub) }
.text-link { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--accent); padding: 5px 0 }
.text-link:hover { text-decoration: underline }
.soda-page .text-link { color: var(--ink) }
.history-row { display: flex; align-items: center; text-align: left; gap: 12px; width: 100%; min-height: 55px; padding: 8px 4px; border-bottom: 1px solid var(--border) }
.history-row:hover { background: #fff2e8 }
.entry-icon { display: grid; place-items: center; flex: none; width: 41px; height: 39px; border-radius: 12px }
.entry-icon img { width: 76%; height: 76% }
.peach,.tone-apricot { background: #ffe3d4 }.sky,.tone-gold { background: #dfedff }.grape,.tone-lilac { background: #eeddf8 }.leaf,.tone-mint { background: #def1d5 }.tone-pink { background: #ffe3db }
.row-copy { flex: 1; min-width: 0 }
.row-copy strong { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.row-copy small, .history-row time { font-size: 12px; color: var(--sub) }
.history-row > svg { width: 12px; color: var(--sub) }
.empty { display: flex; align-items: center; gap: 12px; padding: 13px 4px; min-height: 66px }
.empty img { width: 43px; height: 40px }
.empty h3 { font-size: 15px }.empty p { font-size: 12px; color: var(--sub); margin-top: 3px }
.empty .text-link { margin-left: auto; white-space: nowrap }
.soda-styles,.soda-history { max-width: 800px }
.selected-style { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 14px; border: 1px solid #56321c26; border-radius: 20px; padding: 18px 22px; margin-bottom: 21px }
.selected-style::before { content: ""; position: absolute; z-index: -1; inset: -45% -40px auto auto; width: 164px; height: 164px; border-radius: 50%; background: #fff8 }
.selected-label { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: #593e30 }
.selected-label svg { background: #fff8; border-radius: 50%; padding: 1px }
.selected-style h1 { font-size: clamp(27px,4vw,38px); margin: 4px 0 }
.selected-style p { color: #554237; line-height: 1.55; font-size: 14px }
.selected-style img { width: clamp(66px,9vw,91px); height: auto; aspect-ratio: 1; transform: rotate(4deg) }
.soda-styles-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px }
.soda-style { display: flex; position: relative; align-items: center; min-width: 0; text-align: left; gap: 9px; border-radius: 15px; padding: 10px 12px; min-height: 64px; border: 2px solid transparent }
.soda-style strong { font-size: 16px; line-height: 1.15; font-weight: 760 }
.soda-style[aria-pressed=true] { border-color: var(--ink) }
.soda-style > svg { margin-left: auto; color: var(--ink); flex-shrink: 0 }
.soda-style img { width: 43px; height: 42px }
.style-start { position: sticky; bottom: 0; z-index: 1; margin-top: 16px; padding: 5px 0 }
.style-start .primary-btn { width: 100%; min-height: 44px }
.history-tools { display: flex; align-items: center; justify-content: space-between; gap: 14px }
.history-filters { display:flex; gap:18px; margin-top:6px; border-bottom:1px solid var(--border) }
.history-filters a { position:relative; display:grid; place-items:center; min-height:44px; padding:2px 4px; font-size:14px; color:var(--sub) }
.history-filters a[aria-current] { color:var(--ink); font-weight:750 }
.history-filters a[aria-current]::after { content:""; position:absolute; bottom:2px; left:4px; right:4px; height:4px; border-radius:80% 25% 70% 30%; background:var(--coral); transform:rotate(-2deg) }
.history-row .row-copy small { display:block; overflow:hidden; white-space:nowrap; text-overflow:ellipsis }
.history-row time { flex:none }
.history-item { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:5px; padding:0 7px; margin-top:5px; border:1px solid var(--border); border-radius:14px; background:var(--paper) }
.history-item .history-row { border-bottom:0; min-width:0; border-radius:8px }
.history-delete { min-width:44px; min-height:44px; padding:4px 6px; border-radius:9px; color:var(--accent); font-size:13px; font-weight:600 }
.history-delete:hover, .history-delete:focus-visible { background:#ffecdF }
.history-delete:disabled { opacity:.55 }
.soda-page .history-info { padding:12px 0; font-size:14px; color:var(--sub) }
.history-tools .primary-btn { flex: none }
.search-box { display: flex; align-items: center; flex: 1; gap: 8px; min-width: 0; border: 1px solid #cebcac; border-radius: 99px; padding: 7px 13px; background: var(--paper); color: var(--sub); min-height: 44px }
.search-box:focus-within { border-color: var(--accent) }
.search-box input { border: 0; width: 100%; min-width: 0; padding: 0; color: var(--ink); font-size: 16px; background: transparent }
.history-tools .primary-btn { min-height: 44px }
.soda-history .history-day { display:flex; align-items:center; gap:8px; margin:19px 2px 6px; font-size:16px; letter-spacing:0 }
.history-day::before { content:""; width:5px; height:14px; border-radius:3px; background:#e7ae63; transform:rotate(7deg) }
.card { background: var(--paper); border-radius: 17px; padding: 20px; border: 1px solid var(--border) }
.guide-steps { display: grid; gap: 12px }
.guide-steps div { padding: 15px; border-radius: 12px; background: #fff5e8 }
.guide-steps p { font-size: 14px; margin: 5px 0; color: var(--sub) }
#panel { padding: 0; border: 1px solid var(--border); border-radius: 20px; width: min(620px,calc(100vw - 30px)); max-height: 87dvh; color: var(--ink); background: var(--paper); box-shadow: 0 20px 75px #3a251e32 }
#panel::backdrop { background: #36282066; backdrop-filter: blur(3px) }
.panel-top { display: flex; position: sticky; top: 0; z-index: 5; align-items: center; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid var(--border); background: var(--paper) }
.panel-top h2 { margin: 0; font-size: 18px }
.icon-btn { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #f4ede5; color: var(--sub) }
#panel-body { padding: 18px }
#notice { position: fixed; z-index: 20; bottom: 24px; left: 50%; transform: translateX(-50%); max-width: 90vw; width: max-content; padding: 10px 17px; border-radius: 12px; color: #fff; background: #3e2b24; font-size: 14px; box-shadow: var(--shadow) }
#panel[open] #notice { position: sticky; display: table; left: auto; transform: none; margin: 0 auto 10px; bottom: 10px }
@media (min-width: 701px) and (max-width: 900px) {
  .layout { grid-template-columns: 76px minmax(0,1fr) }
  .rail { padding: 23px 8px }
  .rail .brand span, .rail nav a span, .rail .profile > span:not(.avatar), .profile > i:last-child,.guide { display: none }
  .brand { margin: 0 auto }.rail nav a,.profile { justify-content: center }
}
@media (max-width: 700px) {
  .layout { display: block }
  .rail { position: fixed; z-index: 6; top: auto; bottom: 0; left: 0; right: 0; height: auto; padding: 3px 2px max(4px,env(safe-area-inset-bottom)); border: 0; border-top: 1px solid var(--border); background: #fffaf5fa }
  .rail .brand, .rail-bottom { display: none }
  .rail nav { display: flex; justify-content: space-around; gap: 0; margin: 0 }
  .rail nav a { flex: 1; flex-direction: column; justify-content: center; gap: 3px; min-height: 48px; padding: 4px 1px; font-size: 11px; color: #54463d }
  .rail nav svg { width: 21px; height: 21px; stroke-width: 1.9 }
  .rail nav a.active { color: #cc4527; background: transparent }
  .work { padding-bottom: calc(57px + env(safe-area-inset-bottom)) }
  main { padding: 15px 12px 22px }
  .soda-page { max-width: 520px }
  .soda-welcome { padding: 0 6px }
  .welcome-heading h1 { font-size: clamp(37px,10.7vw,54px); line-height: 1.02 }
  .welcome-art { width: 37%; height: clamp(76px,24vw,120px) }
  .sample-exchange { margin: 9px 0 15px; gap: 4px; font-size: clamp(10.5px,3.18vw,15px) }
  .sample-tag { padding: 3px 5px }
  .example-ask,.example-answer { padding: 4px 6px }
  .soda-tools { grid-template-rows: clamp(137px,41vw,202px) clamp(60px,17vw,79px) clamp(60px,17vw,79px); gap: 8px; grid-template-columns: .95fr 1.1fr }
  .tool { border-radius: 18px; padding: 11px 12px }
  .tool strong { font-size: clamp(21px,6vw,30px) }
  .tool small { font-size: clamp(10.5px,2.95vw,14px); margin-top: 5px }
  .tool-scan { padding-left: 5%; background-size: 68px auto }
  .tool-scan .soda-art { right: 2%; width: 45%; height: 94%; top: 3% }
  .tool-scan strong { font-size: clamp(33px,9vw,48px) }
  .tool-scan small { font-size: clamp(12px,3.25vw,15px); margin-top: 7px }
  .upload-pill { font-size: 13px; padding: 5px 13px; margin-top: 12px }
  .tool-text .soda-art { height: 59%; width: 64%; bottom: 0; right: 2% }
  .tool-agent .soda-art,.tool-style .soda-art { height: 80%; top: 10%; width: 36%; right: 3% }
  .soda-recent { margin-top: 18px }
  .section-head { margin-bottom: 7px }.section-head h2 { font-size: 21px }
  .history-row { min-height: 49px; padding: 7px 3px; gap: 10px }.entry-icon { width: 36px; height: 34px }
  .selected-style { padding: 14px 16px; gap: 8px; border-radius: 17px; margin-bottom: 16px }
  .selected-style::before { width: 122px; height: 122px; top: -34px }
  .soda-styles-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px }
  .soda-style { padding: 6px 8px; gap: 5px; min-height: 54px; border-radius: 13px }.soda-style img { width: 30%; height: 36px }.soda-style strong { font-size: clamp(13px,3.8vw,17px) }
  .style-start { bottom: calc(54px + env(safe-area-inset-bottom)) }
  .history-tools { gap: 8px }
  .history-tools .primary-btn { font-size: 13px; padding: 6px 12px }
  #notice { bottom: calc(70px + env(safe-area-inset-bottom)) }
}
@media(prefers-reduced-motion:reduce) { *, *::before, *::after { scroll-behavior:auto !important; transition:none !important; animation:none !important } }
:root { --soda-display: "Soda Display","PingFang SC","Microsoft YaHei",system-ui,sans-serif }
.soda-page h1, .soda-page h2, .tool strong, .soda-style strong,
#main .member-title, #main .member-detail-head h1,
#main .rd-intro h2, #main .fx-replies .fx-cardhead h3 {
  font-family: var(--soda-display);
  font-weight: 900;
}
.soda-styles .section-head button[aria-expanded=true] svg { transform: rotate(-90deg) }
@media (max-width:700px) {
  .soda-welcome { padding: 3px 8px 0 }
  .welcome-heading h1 { font-size: clamp(39px,11vw,56px) }
  .welcome-art { width: 39%; height: clamp(81px,26vw,130px) }
  .sample-exchange { margin: 11px 0 18px; font-size: clamp(11px,3.5vw,16px) }
  .soda-tools { grid-template-rows: clamp(144px,43vw,212px) clamp(65px,19.4vw,95px) clamp(65px,19.4vw,95px) }
  .tool strong { font-size: clamp(22px,6.5vw,34px) }
  .tool-scan strong { font-size: clamp(35px,9.5vw,49px) }
  .tool small { font-size: clamp(12px,3.1vw,15px) }
  .tool-scan small { font-size: clamp(13px,3.35vw,16px) }
  .soda-recent { margin-top: 20px }
  .soda-styles-grid { gap: 9px }
  .soda-style { min-height: 62px }
  .soda-style img { width: 36px; height: 38px }
}
