.pc { background: #09090e; font-family: "Noto Sans TC", sans-serif; }
.pc-view { background-image: radial-gradient(rgba(217, 217, 217, .05) 1px, transparent 1px); background-size: 11px 11px; }
.pc-top { top: 24px; left: 24px; right: 24px; gap: 12px; flex-wrap: nowrap; }
.pc-top-left, .pc-title-group { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pc-top-left { flex: none; }
.pc-top-left .back { height: 46px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 12px; background: #15161f; color: #fff; font-size: 14px; font-weight: 500; white-space: nowrap; }
.pc-top-left #pc-fnbtn, .pc-top-left #pc-style { gap: 8px; background: #1b1d26; }
.pc-top-left #pc-fnbtn { min-width: 136px; }
.pc-top-left #pc-style { width: 108px; min-width: 108px; }
.pc-top-left .pc-build-word { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pc-top-left .back:hover, .pc-topbtn:hover, .pc-rename:hover, .pc-foot button:hover:not(:disabled) { background: #292d36; }
.pc-title-group { position: absolute; left: 50%; transform: translateX(-50%); max-width: calc(100vw - 1020px); }
.pc-title-group .pc-title { font-size: 24px; font-weight: 500; line-height: 1.4; pointer-events: none; }
.pc-rename, .pc-title-group .pc-topbtn { width: 44px; min-width: 44px; height: 44px; padding: 0; flex: none; border: 0;
  background: rgba(27, 29, 38, .43); color: #fff; font-size: 14px; border-radius: 12px; }
.pc-title-group .pc-topbtn { border-radius: 50%; }
.pc-top > .pc-hint { position: absolute; top: 58px; left: 0; max-width: min(740px, calc(100vw - 48px)); margin: 0;
  color: #929292; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-topright { top: 25px; right: 24px; height: 44px; gap: 0; padding: 6px 8px; border-radius: 99px; background: rgba(27, 29, 38, .43); }
.pc-topright .pc-topbtn { height: 32px; min-width: 32px; padding: 0 8px; background: transparent; border: 0; color: #fff; }
.pc-topright .pc-avatar { padding: 0; width: 32px; height: 32px; background: #292d36; }
.pc-topright .pc-face { width: 32px; height: 32px; }
.pc > .pc-aibtn { position: absolute; top: 38px; right: calc(var(--pc-tr-w, 112px) + 44px); z-index: 4;
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; border: 0; border-radius: 99px; background: #292039;
  color: #b1a2cd; font-size: 12px; line-height: 16px; cursor: pointer; }
.pc > .pc-aibtn::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #a381df; }
.pc > .pc-aibtn:hover { background: #38294f; }
.pc-tools { left: 50px; width: 40px; gap: 6px; padding: 11px 5px; border: 0; border-radius: 99px; background: #1b1d26; backdrop-filter: none; }
.pc-tool, .pc-tool-add { width: 30px; height: 30px; min-height: 30px; flex: none; border-radius: 50%; }
.pc-tool img { display: block; width: 20px; height: 20px; }
.pc-tool:hover { background: #292d36; }
.pc-foot { left: 24px; right: 24px; bottom: 24px; flex-wrap: nowrap; gap: 12px; font-size: 14px; }
.pc-foot button { height: 46px; min-width: 46px; padding: 0 12px; gap: 8px; border: 0; border-radius: 12px; background: #15161f;
  color: #fff; font-size: 14px; font-weight: 500; }
.pc-foot #pc-out, .pc-foot #pc-in { border-radius: 50%; }
.pc-foot #pc-undo, .pc-foot #pc-redo { width: 44px; min-width: 44px; font-size: 18px; }
.pc-foot #pc-find, .pc-foot #pc-listbtn, .pc-foot #pc-histbtn, .pc-foot #pc-select { padding: 0 12px; }
.pc-foot #pc-zoom { min-width: 38px; text-align: center; }
.pc-foot .pc-hint { min-width: 0; margin-left: 14px; color: #929292; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-mini { width: 246px; height: 154px; right: 24px; bottom: 96px; border: 1px solid #292d36; border-radius: 20px; background: #000; }
.pc-card, .pc-frame { border-radius: 16px; }
.pc-gcard.selected .pc-frame { border-color: #7157ff; box-shadow: 0 0 0 1px #7157ff; }
.pc-panel, .pc-imgtools { padding: 12px; gap: 10px; border: 0; border-radius: 24px; background: linear-gradient(135deg, #13121a, #121119); box-shadow: none; }
.pc-panel { width: min(789px, calc(100vw - 32px)); }
.pc-imgtools { max-width: min(562px, calc(100vw - 32px)); gap: 8px; }
.pc-panel-chips, .pc-panel-bar { gap: 8px; }
.pc-panel .pc-chip, .pc-imgtools .pc-chip { min-height: 36px; height: auto; padding: 8px 12px; border: 0; border-radius: 12px;
  background: #1b1d26; color: #fff; font-size: 14px; line-height: 20px; }
.pc-panel .pc-chip:hover, .pc-imgtools .pc-chip:hover { background: #292d36; }
.pc-panel-refs { gap: 16px; }
.pc-panel .pc-ref { width: 92px; height: 92px; border-radius: 12px; border-color: #292d36; }
.pc-panel .pc-panel-prompt { min-height: 121px; padding: 12px 16px; font-size: 14px; line-height: 1.5; }
.pc-panel .pc-prompt-count { padding-right: 16px; font-size: 12px; color: #929292; }
.pc-panel-bar select { height: 36px; padding: 0 12px; border: 0; border-radius: 12px; background: #1b1d26; color: #fff; font-size: 14px; }
.pc-panel .pc-send { width: 48px; height: 48px; flex: none; font-size: 26px; background: #ece9f6; color: #121119; }
.pc-panel .pc-send:disabled { background: #65636c; color: #121119; }
.pc-panel .pc-panel-note, .pc-panel .pc-cost { color: #929292; font-size: 12px; }
.pc-panel-narrow > .pc-panel-bar { background: #13121a; }
.pc-panel.pc-panel-narrow .pc-panel-prompt { min-height: 64px; padding: 8px; }
.pc button:focus-visible { outline: 2px solid #a381df; outline-offset: 3px; }
.pc-progress { display: contents; }

@media (max-width: 1300px) and (min-width: 761px) {
  .pc-top { right: calc(var(--pc-tr-w, 112px) + 40px); flex-wrap: nowrap; }
  .pc-title-group { position: static; transform: none; flex: 1 1 0; max-width: none; margin-left: auto; gap: 8px; }
  .pc-title-group .pc-title { font-size: 18px; }
  .pc > .pc-aibtn { top: 84px; }
  .pc-foot { gap: 8px; }
  .pc-foot .pc-hint { display: none; }
}
@media (max-width: 1050px) and (min-width: 761px) {
  .pc-top-left { gap: 8px; }
  .pc-top-left .back { padding: 0 10px; }
  .pc-top-left #pc-fnbtn, .pc-top-left #pc-style { min-width: 0; }
  .pc-title-group .pc-title { font-size: 16px; }
  .pc-rename, .pc-title-group .pc-topbtn { width: 36px; min-width: 36px; }
  .pc-foot { gap: 6px; }
  .pc-foot button { padding: 0 8px; font-size: 13px; }
}
@media (max-width: 760px) {
  .pc-top { top: 12px; left: 12px; right: 12px; display: block; }
  .pc-top-left { gap: 8px; max-width: 100%; }
  .pc-top-left .back { height: 40px; padding: 0 9px; font-size: 12px; }
  .pc-top-left #pc-fnbtn, .pc-top-left #pc-style { min-width: 40px; width: 40px; padding: 0; }
  .pc-top-left #pc-form { min-width: 40px; width: 40px; padding: 0; gap: 0; font-size: 0; }
  .pc-top-left .pc-build-word { display: none; }
  .pc-title-group { position: static; transform: none; height: 40px; margin-top: 8px; max-width: calc(100% - var(--pc-tr-w, 128px) - 8px); gap: 8px; }
  .pc-title-group .pc-title { font-size: 16px; }
  .pc-rename, .pc-title-group .pc-topbtn { width: 32px; min-width: 32px; height: 32px; font-size: 12px; }
  .pc-top > .pc-hint { top: 92px; max-width: calc(100% - 144px); padding-left: 52px; margin: 0; }
  .pc-topright { top: 58px; right: 12px; }
  .pc > .pc-aibtn { top: 104px; right: 12px; gap: 5px; padding: 3px 7px; font-size: 10px; }
  .pc > .pc-aibtn::before { width: 6px; height: 6px; }
  .pc-progress { position: absolute; top: 134px; left: 64px; right: 12px; z-index: 3; display: flex; flex-direction: column; gap: 8px;
    max-height: calc(100vh - 204px); max-height: calc(100dvh - 204px); overflow-y: auto; overscroll-behavior: contain; }
  .pc-progress > .af-bar { position: relative; top: auto; left: auto; transform: none; max-width: none; flex: none; }
  .pc-tools { left: 12px; max-height: calc(100vh - 220px); }
  .pc-foot { left: 12px; right: 12px; bottom: 12px; flex-wrap: nowrap; gap: 6px; overflow-x: auto; padding-bottom: 4px;
    overscroll-behavior-x: contain; scrollbar-width: thin; }
  .pc-foot button { height: 34px; min-width: 34px; padding: 0 8px; font-size: 12px; border-radius: 10px; }
  .pc-foot #pc-undo, .pc-foot #pc-redo { width: 34px; min-width: 34px; }
  .pc-foot #pc-find, .pc-foot #pc-listbtn, .pc-foot #pc-histbtn, .pc-foot #pc-select { padding: 0 8px; }
  .pc-foot .pc-hint { display: none; }
  .pc-mini { display: none; }
  .pc-panel, .pc-imgtools { border-radius: 18px; }
  .pc-panel .pc-ref { width: 64px; height: 64px; }
  .pc-panel .pc-send { width: 40px; height: 40px; }
}
