:root {
  color-scheme: dark;
  --bg: #151411; --panel: #201e19; --text: #f0e8d9; --muted: #a89b85;
  --border: #3d3529; --accent: #bd9460; --accent-text: #1c1710;
  --claude: #e7a275; --codex: #83bbb2; --bubble: #30281f; --code-bg: #171714;
  --ok: #93b798; --radius: 16px;
}
body { background: #151411; }
button, input, textarea, select { transition: border-color .18s, background .18s, box-shadow .18s; }
button:focus-visible, select:focus-visible, textarea:focus-visible, input:focus-visible { outline: 2px solid #d4ac70; outline-offset: 3px; }
.app { grid-template-columns: 244px minmax(0, 1fr); }
.sidebar { background: linear-gradient(165deg,#242018,#181714 68%); border-right-color: #51422c70; }
.sidebar-head { padding: 25px 18px 23px; align-items: start; gap: 6px; }
.brand { font-family: Georgia, 'Iowan Old Style', serif; font-size: 29px; font-weight: 400; line-height: 1.1; color: #e9c68f; }
.brand-sigil { font-size: 31px; }
.brand-sub { display: block; margin: 9px 0 0 3px; font: 8px/1.6 var(--font); letter-spacing: 1.8px; color: #9e8b6d; }
.sidebar-head .primary { font-size: 11px; margin-top: 5px; padding: 6px 8px; border-radius: 6px; background: #433627; color: #efcf9a; border: 1px solid #6d5232; }
.sidebar-label { font-size: 10px; color: #8f8067; letter-spacing: 2px; padding: 6px 23px 13px; }
.sidebar-clear { display: block; margin: -7px 20px 9px auto; padding: 3px 8px; border: 1px solid rgba(201, 168, 108, .28); border-radius: 6px; background: transparent; color: #a89472; font: inherit; font-size: 11px; cursor: pointer; }
.sidebar-clear:hover { border-color: rgba(201, 168, 108, .65); color: #e0c58f; }
.conversation-list { padding: 0 12px; }
.conv-row { margin-bottom: 4px; }
.conv-item { padding: 12px 32px 12px 12px; margin-bottom: 0; border: 1px solid transparent; border-radius: 9px; }
.conv-item.active { background: linear-gradient(100deg,#49342170,#33291e40); border-color: #7a5c343d; }
.conv-item .t { font-size: 12px; color: #e2d4bd; }
.conv-item .s { margin-top: 5px; font-size: 10px; color: #97866b; }
.conv-del { right: 7px; color: #97866b; }
.conv-del:hover { background: #5a232366; color: #f2a7a7; }
.sidebar-foot { padding: 16px; border-top-color: #5e4b2f40; gap: 17px; }
.agent-status { gap: 13px; font-size: 12px; }
.agent-status .small { font-size: 10px; padding-left: 15px; margin-top: 3px; }
.dot { width: 6px; height: 6px; }
.foot-actions button { font-size: 11px; color: #baa88c; background: transparent; border-color: #4b3e2a; }
.main { background: radial-gradient(ellipse at 70% 0%,#4d30231c,transparent 60%),#171613; }
.topbar { background: #1b1915c9; min-height: 62px; padding: 12px 28px; border-color: #5340274d; }
.conv-title { font-size: 13px; font-weight: 400; color: #cbbb9e; }
.segmented { border-color: #58482e; border-radius: 7px; }
.segmented button { padding: 5px 13px; font-size: 11px; color: #af9f83; }
.segmented button + button { border-color: #58482e70; }
.segmented button[aria-checked='true'] { background: #534029; color: #f6d6a0; }
.character-stage { flex: none; height: 276px; position: relative; overflow: clip; isolation: isolate; border-bottom: 1px solid #96714142; background: radial-gradient(ellipse at 72% 50%,#7044263d,transparent 60%),linear-gradient(110deg,#211d17,#231a16 65%,#171614); }
.character-stage::before { content: ''; position: absolute; inset: 14px 20px; border: 1px solid #b2894c1c; border-radius: 2px; pointer-events: none; }
.character-stage::after { content: ''; position: absolute; inset: auto 0 0; height: 55px; background: linear-gradient(transparent,#171613); z-index: 2; pointer-events: none; }
.character-stage.codex { background: radial-gradient(ellipse at 72% 50%,#2d635842,transparent 60%),linear-gradient(110deg,#1b201b,#152421 65%,#171614); }
.character-stage.gemini { background: radial-gradient(ellipse at 72% 50%,#51436b50,transparent 60%),linear-gradient(110deg,#201c29,#211b30 65%,#171614); }
.stage-copy { position: absolute; left: 6%; top: 35px; width: 48%; z-index: 3; }
.stage-eyebrow { font-size: 8px; letter-spacing: 3px; color: #b29974; }
.stage-copy h1 { font: 43px/1 Georgia,'Iowan Old Style',serif; letter-spacing: -.5px; color: #f0d1a7; margin: 16px 0 11px; font-weight: 400; }
.codex .stage-copy h1 { color: #b5dbcf; }
.gemini .stage-copy h1 { color: #d2b9ef; }
.stage-copy h1 span { display: block; font: 11px/1.4 var(--font); letter-spacing: 2px; color: #b6a07b; margin-top: 11px; }
.stage-copy p { font-size: 12px; color: #c5b89f; margin: 11px 0; }
.stage-presence { display: flex; align-items: center; gap: 6px; font-size: 9px; color: #9f947e; }
.presence-dot { width: 4px; height: 4px; border-radius: 50%; background: #9fba93; box-shadow: 0 0 7px #9fba9370; }
.presence-dot.busy { background: #f3c075; animation: spark-pulse 1.5s infinite; }
.stage-art { position: absolute; right: 5%; width: 36%; height: 100%; top: 0; z-index: 1; }
.stage-character { position: absolute; top: 0; left: 50%; height: 100%; max-width: 100%; width: auto; object-fit: contain; transform: translateX(-50%); filter: drop-shadow(0 9px 18px #0008); animation: character-arrive .7s ease both, companion-breathe 6s ease-in-out .7s infinite; transform-origin: 50% 65%; }
.magic-ring { position: absolute; width: 215px; height: 215px; top: 30px; left: 50%; transform: translateX(-50%); border: 1px solid #d9ad5c25; border-radius: 50%; box-shadow: 0 0 40px #d4a85e0b,inset 0 0 35px #d4a85e08; }
.magic-ring::before { content: '✧'; position: absolute; inset: -17px; border: 1px solid #d9ad5c13; border-radius: 50%; color: #c0a36c80; font: 28px Georgia; text-align: center; }
.companion-tabs { display: flex; gap: 8px; position: absolute; left: 6%; bottom: 23px; z-index: 4; }
.companion-tab { display: flex; align-items: center; gap: 7px; color: #aa9b82; font-size: 10px; padding: 4px 10px 4px 5px; background: #15130f9c; border: 1px solid #70563264; border-radius: 6px; }
.companion-tab.selected { color: #f3d19a; background: #5f42214d; border-color: #bd8e4f; box-shadow: 0 0 15px #9663250c; }
.companion-tab.codex.selected { border-color: #7bafa0; background: #25423b80; color: #bce0d3; }
.companion-tab.gemini.selected { border-color: #ad85c8; background: #48345080; color: #dec4f2; }
.companion-thumb { width: 23px; height: 26px; object-fit: contain; object-position: center; border-radius: 4px; }
.companion-tab small { color: #a18ba9; font-size: 8px; }
.tiny-star { font-size: 7px; color: #b1bc97; }
.messages { padding: 30px 30px 20px; background-color: #171613; background-image: linear-gradient(#171613c9,#171613d9),url('/static/characters/office-chat-bg.jpg'); background-size: cover; background-position: center; background-repeat: no-repeat; background-attachment: local; }
.thread { max-width: 1020px; gap: 24px; }
.user-msg { position: relative; justify-self: start; margin-left: 112px; width: fit-content; max-width: calc(100% - 112px); padding: 10px 14px; border: 1px solid #b58a4b80; border-radius: 2px 14px 14px 14px; background: linear-gradient(145deg,#49391f,#302719); box-shadow: 0 5px 18px #0003; text-align: left; font-size: 12px; color: #f1d7a8; }
.user-msg::before { content: ''; position: absolute; left: -6px; top: 18px; width: 9px; height: 9px; background: #49391f; border-left: 1px solid #b58a4b80; border-bottom: 1px solid #b58a4b80; transform: rotate(45deg); }
.user-msg .to { display: block; font-size: 8px; text-align: left; color: #b69a6d; margin-top: 7px; }
.responses { display: flex; flex-direction: column; gap: 24px; }
.card.dialogue-row { display: flex; align-items: flex-start; gap: 12px; padding: 0; background: transparent; border: none; width: min(92%,830px); min-width: 0; border-radius: 0; }
.dialogue-row.codex { flex-direction: row-reverse; align-self: flex-end; }
.dialogue-portrait { flex: none; position: relative; width: 102px; height: 144px; overflow: visible; }
.portrait-art { position: absolute; inset: 0; overflow: hidden; border-radius: 4px 4px 40% 40%; mask-image: linear-gradient(#000 85%,transparent); }
.portrait-art img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center top; filter: drop-shadow(0 4px 6px #0007); }
.portrait-art .portrait-motion { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center top; pointer-events: none; filter: drop-shadow(0 4px 6px #0007); }
.portrait-art .portrait-motion[hidden] { display: none; }
.portrait-art.motion-ready > img { opacity: 0; animation: none; }
.task-face, .completion-report-character, .target-avatar { position: relative; }
.task-face .portrait-motion { position: absolute; inset: 0; width: 100%; height: 230%; object-fit: cover; object-position: 50% 4%; }
.task-face.motion-ready > img, .completion-report-character.motion-ready > img, .target-avatar.motion-ready > img { opacity: 0; }
.completion-report-character .portrait-motion { position: absolute; inset: auto 0 0; width: 100%; height: 166px; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 5px 8px #0009); }
.target-avatar .portrait-motion { position: absolute; z-index: 2; left: 0; bottom: 0; width: 100%; height: 230%; object-fit: cover; object-position: 50% 2%; pointer-events: none; }
.portrait-halo { position: absolute; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(#bc704b30,transparent 70%); top: 15px; }
.codex .portrait-halo { background: radial-gradient(#4bbaa530,transparent 70%); }
.dialogue-portrait.thinking .portrait-art img { animation: portrait-breathe 3s ease-in-out infinite; transform-origin: 50% 80%; }
.thought-spark { position: absolute; right: 2px; top: 8px; color: #f6ca82; animation: spark-pulse 1.6s ease-in-out infinite; }
.portrait-speech { position: absolute; z-index: 3; top: 3px; right: -96px; width: 142px; padding: 6px 9px; border: 1px solid #9a643b80; border-radius: 11px 11px 11px 3px; background: linear-gradient(145deg,#392a20,#2d241d); color: #f2dfc2; box-shadow: 0 4px 12px #0005; font-size: 10px; line-height: 1.35; text-align: left; white-space: normal; overflow-wrap: anywhere; }
.portrait-speech::before { content: ''; position: absolute; left: -4px; top: 10px; width: 6px; height: 6px; background: #392a20; border-left: 1px solid #9a643b80; border-bottom: 1px solid #9a643b80; transform: rotate(45deg); }
.portrait-speech { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.dialogue-row.codex .portrait-speech { right: auto; left: -96px; border-color: #588a7380; border-radius: 11px 11px 3px 11px; background: linear-gradient(145deg,#20352e,#1b2b25); color: #d9efe6; }
.dialogue-row.codex .portrait-speech::before { left: auto; right: -4px; background: #20352e; border: 0; border-top: 1px solid #588a7380; border-right: 1px solid #588a7380; }
.dialogue-row.gemini .portrait-speech { border-color: #7b88b780; background: linear-gradient(145deg,#2b3048,#22263a); color: #e0e4fa; }
.dialogue-row.gemini .portrait-speech::before { background: #2b3048; border-color: #7b88b780; }
.speech-bubble.listening { padding-top: 43px; }
.speech-bubble { position: relative; flex: 1; min-width: 0; background: linear-gradient(145deg,#30251d,#242019); border: 1px solid #9a643b5e; border-radius: 2px 15px 15px 15px; padding: 14px 18px 11px; box-shadow: 0 7px 22px #00000014; }
.speech-bubble::before { content: ''; position: absolute; width: 9px; height: 9px; left: -6px; top: 22px; background: #30251d; border-left: 1px solid #9a643b5e; border-bottom: 1px solid #9a643b5e; transform: rotate(45deg); }
.codex .speech-bubble { background: linear-gradient(145deg,#1c302b,#1b2521); border-color: #588a735c; border-radius: 15px 2px 15px 15px; }
.codex .speech-bubble::before { left: auto; right: -6px; background: #21332c; border-color: #588a735c; border-left: 0; border-bottom: 0; border-right: 1px solid #588a735c; border-top: 1px solid #588a735c; }
.gemini .speech-bubble { background: linear-gradient(145deg,#252840,#1d2030); border-color: #7b88b75c; }
.gemini .speech-bubble::before { background: #252840; border-color: #7b88b75c; }
.gemini .card-head .name { color: #b9c4ee; }
.gemini .portrait-halo { background: radial-gradient(#736dcc35,transparent 70%); }
.composer-main { flex: 1; min-width: 0; }
.composer .attach { color: #bca375; font-size: 17px; padding: 11px 3px; }
.delegation { margin-left: 112px; font-size: 10px; border-color: #796e5c55; padding: 8px 12px; }
.card-head { gap: 7px; flex-wrap: wrap; font-size: 11px; }
.card-head .name { font: 17px Georgia,'Iowan Old Style',serif; color: #e9b38e; }
.codex .card-head .name { color: #a3d4c5; }
.character-title { font-size: 8px; color: #a58c6b; }
.codex .character-title { color: #7f9e8d; }
.card-head .meta { font-size: 11px; }
.badge { font-size: 8px; padding: 1px 5px; border-color: #88714d55; }
.badge.completed { color: #a3b292; border-color: #7a92643d; }
.body { font-size: 13px; line-height: 1.8; margin-top: 9px; color: #eee1cc; }
.body.placeholder { color: #b5a58a; font-style: normal; }
.live-progress { color: #d8c5a4; font-size: 12px; margin: 12px 0 4px; line-height: 1.7; }
.thinking-line { display: inline-flex; align-items: center; gap: 4px; }
.thinking-line i { width: 3px; height: 3px; background: #c1a578; border-radius: 50%; animation: spark-pulse 1.2s infinite; }
.thinking-line i:nth-child(2) { animation-delay: .2s; }
.thinking-line i:nth-child(3) { animation-delay: .4s; }
.empty { margin: 22px auto; }
.empty-ornament { font: 37px Georgia; color: #c8a26c; }
.empty h2 { font-weight: 400; font-size: 17px; color: #ddc7a5; }
.empty p { font-size: 11px; color: #9e8c70; }
.composer { background: #1e1b15; padding: 15px 30px 20px; gap: 12px; border-top-color: #6a512f50; }
.composer textarea { background: #15140f; border-color: #68533788; border-radius: 8px; font-size: 12px; padding: 13px 16px; }
.composer textarea::placeholder { color: #8b7c64; }
.composer .primary { padding: 11px 17px; border: 1px solid #c89f63; background: linear-gradient(#c2a06c,#a27a46); color: #20170d; border-radius: 7px; font-size: 12px; }
.settings { background: #242019; border-color: #745936; }
.settings-head, .tabs, .settings-foot { border-color: #52422b; }
.field select,.field input[type='text'],.field input[type='number'],.field textarea { background: #171610; }
@keyframes character-arrive { from { opacity: 0; translate: 15px 4px; } to { opacity: 1; translate: 0 0; } }
@keyframes companion-breathe { 0%,100% { transform: translateX(-50%) translateY(0) rotate(-.3deg); } 50% { transform: translateX(-50%) translateY(-4px) rotate(.3deg); } }
@keyframes portrait-breathe { 50% { transform: translateY(-3px) rotate(.7deg); } }
@keyframes spark-pulse { 0%,100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.12); } }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .topbar { min-height: 52px; padding: 10px 18px; }
  .segmented { width: auto; }
  .segmented button { padding: 4px 8px; }
  .conv-title { font-size: 12px; }
  .character-stage { height: 242px; }
  .stage-copy { left: 5%; top: 28px; }
  .stage-copy h1 { font-size: 37px; margin-top: 14px; }
  .stage-art { right: 4%; width: 38%; }
  .stage-character { height: 100%; top: 0; }
  .magic-ring { width: 180px; height: 180px; }
  .stage-copy p { font-size: 11px; }
  .companion-tabs { left: 5%; bottom: 18px; }
  .messages { padding: 24px 18px; }
  .card.dialogue-row { width: 96%; gap: 7px; }
  .dialogue-portrait { width: 80px; height: 121px; }
  .portrait-speech { right: -88px; width: 132px; }
  .dialogue-row.codex .portrait-speech { left: -88px; }
  .speech-bubble { padding: 13px 14px 10px; }
  .composer { padding: 12px 18px 16px; }
}
@media (max-width: 520px) {
  .topbar { gap: 5px; padding: 9px 12px; }
  .segmented button { font-size: 10px; padding: 5px 6px; }
  .character-stage { height: 225px; }
  .stage-copy { top: 28px; width: 54%; }
  .stage-eyebrow { letter-spacing: 1.5px; font-size: 7px; }
  .stage-copy h1 { font-size: 32px; }
  .stage-copy h1 span { font-size: 9px; letter-spacing: 1px; }
  .stage-copy p { font-size: 9px; max-width: 170px; }
  .stage-presence { font-size: 8px; }
  .stage-art { right: -4%; width: 48%; }
  .stage-character { height: 100%; top: 0; }
  .companion-tabs { gap: 5px; }
  .companion-tab { gap: 4px; font-size: 9px; padding-right: 7px; }
  .companion-thumb { width: 20px; height: 23px; }
  .companion-tab small { font-size: 7px; }
  .messages { padding: 20px 10px; }
  .card.dialogue-row { width: 100%; gap: 6px; }
  .dialogue-portrait { width: 57px; height: 96px; }
  .portrait-speech { right: -82px; width: 124px; font-size: 9px; padding: 5px 7px; }
  .dialogue-row.codex .portrait-speech { left: -82px; }
  .speech-bubble { padding: 11px 12px 9px; }
  .character-title { display: none; }
  .card-head .name { font-size: 15px; }
  .body { font-size: 12px; line-height: 1.75; }
  .user-msg { margin-left: 63px; max-width: calc(100% - 63px); font-size: 11px; }
  .composer { padding: 10px 12px 14px; }
  .composer textarea { padding: 12px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation: none !important; transition: none !important; }
}
.cli-account-list { display: grid; gap: 14px; margin-top: 16px; }
.cli-account { display: flex; gap: 18px; padding: 18px; border: 1px solid #514331; border-radius: 18px; background: linear-gradient(130deg, #2b251e, #1e1c1b); }
.cli-account-portrait { width: 82px; height: 112px; object-fit: contain; object-position: center; border-radius: 12px; background: #373027; flex-shrink: 0; }
.cli-account-content { min-width: 0; flex: 1; }
.cli-account-heading { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.cli-account-heading h3 { margin: 0; font-size: 19px; }
.cli-account-email { margin: 8px 0; overflow-wrap: anywhere; color: #f4e3c5; }
.cli-login-status { font-size: 12px; border: 1px solid #706044; color: #ddc69d; padding: 3px 8px; border-radius: 20px; }
.cli-login-status.connected { color: #b3ddbe; border-color: #497052; }
.cli-login-status.signed-out { color: #edb49c; border-color: #996b53; }
.cli-account-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.foot-actions { flex-wrap: wrap; }
@media (max-width: 500px) { .cli-account { gap: 12px; padding: 13px; } .cli-account-portrait { width: 56px; height: 84px; } }
.topbar { flex-wrap: wrap; gap: 12px; }
#target-picker { flex: none; display: flex; align-items: stretch; gap: 8px; overflow: visible; }
#target-picker button.target-card { position: relative; isolation: isolate; display: flex; flex: 0 0 146px; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 5px; height: 168px; min-height: 0; overflow: hidden; padding: 11px 10px; border: 1px solid #705d3e; border-radius: 12px; background: linear-gradient(155deg,#29231c,#171613 78%); text-align: left; white-space: normal; box-shadow: 0 4px 14px #0003; }
#target-picker button.target-card::before { position: absolute; z-index: -1; content: ''; inset: 0; background: linear-gradient(180deg,#1a1713 0%,#1b1813eF 39%,#17161355 74%,#171613a8 100%); pointer-events: none; }
#target-picker button.target-card[aria-checked='true'] { border-color: #c39a5c; box-shadow: 0 0 0 1px #c39a5c66, 0 6px 18px #0005; }
#target-picker button.target-card:hover:not(:disabled) { border-color: #c39a5c; transform: translateY(-2px); }
#target-picker button.target-card:disabled { opacity: .52; }
.target-portrait { position: absolute; z-index: -2; left: 50%; bottom: -31px; width: 100%; height: 196px; transform: translateX(-50%); object-fit: contain; object-position: center bottom; filter: drop-shadow(0 4px 8px #0008); pointer-events: none; }
.target-info { position: relative; z-index: 1; display: grid; align-content: start; gap: 5px; width: 100%; min-width: 0; text-align: left; }
.target-name { color: #f0dfc2; font-size: 13px; font-weight: 650; letter-spacing: .01em; }
.target-subtitle { color: #c3ae8b; font-size: 9px; }
.target-live { position: relative; display: flex; align-items: flex-start; gap: 4px; width: 100%; max-width: none; padding: 4px 6px; border: 1px solid #806a4b88; border-radius: 7px; background: #211d17d9; color: #f0dfc2; white-space: normal; text-align: left; font-size: 8px; line-height: 1.25; box-shadow: 0 2px 7px #0003; }
.target-live::before { content: none; }
.target-live.queued { color: #c4b69f; opacity: .85; }
.target-live-dot { flex: 0 0 5px; width: 5px; height: 5px; margin-top: 2px; border-radius: 50%; background: #dfaa68; box-shadow: 0 0 0 2px #dfaa6822; animation: target-pulse 1.6s ease-in-out infinite; }
.target-live.queued .target-live-dot { background: #9f927f; animation: none; }
.target-live-text { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; }
@keyframes target-pulse { 50% { opacity: .45; transform: scale(.8); } }
.target-usage { display: grid; gap: 4px; }
.quota-text { font-size: 9px; color: #d0bd9c; }
.quota-meter { appearance: none; width: 100%; height: 4px; border: 0; border-radius: 5px; background: #65563e66; overflow: hidden; }
.quota-meter::-webkit-progress-bar { background: #65563e66; }
.quota-meter::-webkit-progress-value { background: #c3a46d; border-radius: 5px; }
.quota-meter.low::-webkit-progress-value { background: #e09a69; }
.quota-meter::-moz-progress-bar { background: #c3a46d; }
.quota-unavailable { height: 4px; background: repeating-linear-gradient(135deg,#695c4644 0 3px,transparent 3px 6px); border-radius: 5px; }
.target-pair { display: flex; }
.target-pair .target-portrait { width: 23px; height: 32px; }
.target-pair .target-portrait + .target-portrait { margin-left: -8px; margin-top: 8px; }
button.target-card.target-claude { background-color: #30271f; }
button.target-card.target-codex { background-color: #1d2925; border-color: #4b7569; }
button.target-card.target-codex[aria-checked='true'] { border-color: #83bbb2; box-shadow: 0 0 0 1px #83bbb266, 0 6px 18px #0005; }
button.target-card.target-gemini { background-color: #262335; border-color: #63557e; }
button.target-card.target-gemini[aria-checked='true'] { border-color: #b49bd3; box-shadow: 0 0 0 1px #b49bd366, 0 6px 18px #0005; }
button.target-card.target-beiko { background-color: #30212a; border-color: #84566b; }
.target-auto { align-self: center; margin-top: 22px; font-size: 32px; line-height: 1; color: #dab477; }
#target-picker button.target-card.target-auto { flex-basis: 92px; align-items: center; text-align: center; }
@media (max-width: 900px) { #target-picker { width: 100%; justify-content: center; flex-wrap: wrap; } #target-picker button.target-card { flex: 1 1 136px; max-width: 170px; } .topbar { padding: 10px 16px; } }
@media (max-width: 480px) { #target-picker { justify-content: stretch; gap: 5px; } #target-picker button.target-card { flex: 1 1 calc(33.333% - 5px); max-width: none; height: 142px; padding: 8px 7px; } .target-portrait { height: 174px; bottom: -29px; } .target-info { min-width: 0; gap: 4px; } .target-name { font-size: 11px; } .quota-text { font-size: 8px; } .target-live { font-size: 7px; padding: 3px 4px; } #target-picker button.target-card.target-auto { flex-basis: calc(33.333% - 5px); } }
.vault-form { display: grid; gap: 14px; margin: 16px 0; }
.vault-form label { display: grid; gap: 6px; }
.vault-form input, .vault-form textarea, .vault-secret input { box-sizing: border-box; width: 100%; min-width: 0; padding: 11px 12px; background: #181713; color: var(--text); border: 1px solid var(--border); border-radius: 9px; }
.vault-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.vault-entry { padding: 16px; border: 1px solid var(--border); border-radius: 12px; margin-top: 14px; background: #24201b; overflow-wrap: anywhere; }
.vault-entry h4 { margin: 0 0 10px; }
.vault-secret { display: flex; gap: 8px; align-items: center; }
.vault-view details { margin-top: 24px; }
.vault-view details input { margin-top: 12px; max-width: 100%; }

@media (max-width: 600px) {
  #target-picker button.target-card { min-width: 0; padding: 7px 6px; }
  #target-picker .target-auto { font-size: 26px; }
  #target-picker .target-subtitle { font-size: 8px; }
  #target-picker .default-mark { display: none; }
}

/* 총괄 비서: 개별 검토와 별도의 종합 결과 */
.beiko .speech-bubble { background: linear-gradient(145deg,#39272e,#281f24); border-color: #bf879969; }
.beiko .speech-bubble::before { background:#39272e; border-color:#bf879969; }
.beiko .card-head .name { color:#efbccb; }
.beiko .portrait-halo { background:radial-gradient(#cc839735,transparent 70%); }
.beiko .character-title { color:#c997a7; }

/* 업무 완료 도장 — 말풍선 오른쪽 아래에 비서 색으로 찍힌다 */
.speech-bubble.stamped { padding-bottom: 64px; }
.done-stamp { position: absolute; right: 16px; bottom: -18px; width: 88px; height: 88px; color: #e8a06a; opacity: .95; transform: rotate(-10deg); pointer-events: none; filter: drop-shadow(0 0 6px currentColor) drop-shadow(0 2px 3px #0008); }
.done-stamp svg { width: 100%; height: 100%; display: block; }
.codex .done-stamp { color: #8fe0c4; }
.claude .done-stamp { color: #ffab78; }
.gemini .done-stamp { color: #aab6ff; }
.beiko .done-stamp { color: #f4a9c6; }
.done-stamp.stamp-in { animation: stamp-down .55s cubic-bezier(.2,.9,.3,1.2) both; }
@keyframes stamp-down {
  0% { transform: rotate(-10deg) scale(1.8); opacity: 0; }
  55% { transform: rotate(-10deg) scale(.94); opacity: 1; }
  75% { transform: rotate(-10deg) scale(1.04); }
  100% { transform: rotate(-10deg) scale(1); opacity: .95; }
}
@media (max-width: 640px) { .done-stamp { width: 72px; height: 72px; right: 10px; bottom: -14px; } .speech-bubble.stamped { padding-bottom: 52px; } }
@media (prefers-reduced-motion: reduce) { .done-stamp.stamp-in { animation: none; } }


/* ── 업무 현황 패널(모든 대화 통합) ───────────────────────────── */
.task-panel { display: none; flex-direction: column; min-height: 0; height: 100%; background: linear-gradient(180deg,#1b1914,#15140f); border-left: 1px solid #52422b; }
.app.tasks-open { grid-template-columns: 244px minmax(0, 1fr) 316px; }
.app.tasks-open .task-panel { display: flex; }
.tasks-toggle { position: relative; margin-left: 6px; }
.tasks-toggle.busy::after { content: attr(data-count); position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #e7a275; color: #1b1914; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; }
.task-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px; border-bottom: 1px solid #52422b; }
.task-panel-head strong { display: block; font-size: 14px; color: #f2dfc2; letter-spacing: .02em; }
.task-count { display: block; margin-top: 2px; font-size: 11px; color: #b79f7c; }
.task-list { flex: 1; min-height: 0; overflow-y: auto; padding: 10px 12px 18px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; scrollbar-color: #6b5436 transparent; }
.task-section { margin: 8px 2px 0; font-size: 11px; font-weight: 600; color: #b79f7c; letter-spacing: .06em; }
.task-empty { margin: 24px 8px; font-size: 12px; line-height: 1.6; color: #9c8a6d; text-align: center; }
.task-card { position: relative; cursor: pointer; padding: 10px 11px 9px; border: 1px solid #9a643b52; border-radius: 12px; background: linear-gradient(145deg,#2a2119,#211c16); box-shadow: 0 4px 14px #0004; transition: border-color .15s, transform .15s; animation: task-in .35s ease-out; }
.task-card:hover { border-color: #c9895a99; }
.task-card.codex { border-color: #588a7352; background: linear-gradient(145deg,#1c2b26,#18211e); }
.task-card.gemini { border-color: #7b88b752; background: linear-gradient(145deg,#232640,#1b1e30); }
.task-card.beiko { border-color: #bf879952; background: linear-gradient(145deg,#33242b,#261d22); }
.task-card.running { box-shadow: 0 0 0 1px #e7a2752e, 0 4px 16px #0005; }
.task-card.completed, .task-card.stopped, .task-card.failed, .task-card.interrupted { opacity: .86; }
.task-card.delegated { cursor: pointer; }
@keyframes task-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.task-top { display: flex; align-items: center; gap: 9px; }
.task-face { flex: none; width: 42px; height: 42px; border-radius: 50%; overflow: hidden; border: 1.5px solid #c9895a80; background: #14120e; }
.codex .task-face { border-color: #6fbba3a0; }
.gemini .task-face { border-color: #98a4e0a0; }
.beiko .task-face { border-color: #dc9db4a0; }
.task-face img { display: block; width: 100%; height: 230%; object-fit: cover; object-position: 50% 4%; }
.task-head { flex: 1; min-width: 0; }
.task-title { font-size: 13px; line-height: 1.35; font-weight: 600; color: #f6e8d0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.task-meta { margin-top: 2px; font-size: 10.5px; color: #b09a78; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task-meta b { color: #d9c3a0; font-weight: 600; }
.task-badge { flex: none; align-self: flex-start; padding: 1px 7px; border-radius: 99px; border: 1px solid #88714d66; font-size: 10px; color: #cdb590; }
.task-badge.running { color: #f0c08f; border-color: #e7a275; }
.task-badge.completed { color: #9fd1bb; border-color: #6fbba366; }
.task-badge.failed, .task-badge.interrupted { color: #f19a8e; border-color: #d9695a88; }
.task-clock { display: flex; align-items: center; gap: 8px; margin: 7px 0 0 51px; font-size: 10.5px; color: #a8957a; min-height: 18px; }
.task-stop { margin-left: auto; padding: 1px 8px; border-radius: 6px; border: 1px solid #6b5436; background: transparent; color: #d9c3a0; font-size: 10.5px; cursor: pointer; }
.task-stop:hover { background: #3a2d20; }
.task-bar { height: 3px; margin: 6px 0 0 51px; border-radius: 3px; background: #ffffff10; overflow: hidden; position: relative; }
.task-bar::after { content: ''; position: absolute; inset: 0 auto 0 0; width: 40%; border-radius: 3px; background: linear-gradient(90deg,transparent,#e7a275,transparent); animation: task-bar 1.5s ease-in-out infinite; }
.codex .task-bar::after { background: linear-gradient(90deg,transparent,#6fbba3,transparent); }
@keyframes task-bar { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.task-steps { list-style: none; margin: 8px 0 0 51px; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.step { display: flex; gap: 6px; font-size: 11px; line-height: 1.4; color: #a8957a; }
.step i { flex: none; width: 12px; font-style: normal; text-align: center; color: #7a6a52; }
.step.ok i { color: #8cc6a8; }
.step.bad { color: #f19a8e; }
.step.bad i { color: #f19a8e; }
.step.now { color: #f0dcbc; }
.step.now i { color: #e7a275; animation: spark-pulse 1.2s ease-in-out infinite; }
.task-error { margin: 6px 0 0 51px; font-size: 11px; color: #f19a8e; overflow-wrap: anywhere; }
.task-children { margin-top: 9px; padding-top: 8px; border-top: 1px dashed #ffffff1c; display: flex; flex-direction: column; gap: 8px; }
.task-children .task-card { box-shadow: none; animation: none; }
.task-children::before { content: '↳ 맡긴 일'; font-size: 10px; color: #a8957a; letter-spacing: .04em; }
@media (max-width: 1100px) {
  .app.tasks-open { grid-template-columns: 244px minmax(0, 1fr); }
  .task-panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 92vw); z-index: 30; box-shadow: -10px 0 30px #0008; }
}
@media (max-width: 900px) {
  .app.tasks-open { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .task-card, .task-bar::after, .step.now i { animation: none; } }

/* 전역 완료 보고: 누르면 닫히고, 여러 완료는 하나씩 이어서 보여 준다. */
.completion-reports { position: fixed; z-index: 100; right: 24px; bottom: 24px; width: min(460px, calc(100vw - 32px)); pointer-events: none; }
.completion-report { display: flex; align-items: center; width: 100%; min-height: 154px; overflow: hidden; padding: 0 16px 0 0; border: 1px solid #8c76565c; border-radius: 18px; background: linear-gradient(135deg,#29251feF,#191916f5 72%); color: #eee4d3; text-align: left; box-shadow: 0 16px 52px #0009, inset 0 1px #fff1; cursor: pointer; pointer-events: auto; animation: completion-card-in .52s cubic-bezier(.18,.9,.28,1.12) both; }
.completion-report:hover { border-color: #c9a66d; transform: translateY(-2px); }
.completion-report:focus-visible { outline: 2px solid #d4ac70; outline-offset: 4px; }
.completion-report-character { position: relative; align-self: stretch; display: flex; align-items: end; justify-content: center; flex: 0 0 118px; margin-right: 12px; overflow: hidden; }
.completion-report-character img { display: block; width: 100%; height: 166px; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 5px 8px #0009); transform-origin: center bottom; animation: completion-character-in .72s cubic-bezier(.18,.9,.28,1.16) both; }
.completion-report-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; align-items: flex-start; gap: 6px; padding: 13px 0; }
.completion-report-head { display: flex; align-items: center; gap: 9px; }
.completion-report-head strong { color: #e7c994; font: 18px Georgia,'Iowan Old Style',serif; }
.completion-report-badge { padding: 2px 8px; border: 1px solid #78b79b88; border-radius: 99px; color: #aee1c9; font-size: 10px; }
.completion-report-title { display: -webkit-box; overflow: hidden; color: #f5ebda; font-size: 13px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.completion-report-result { display: -webkit-box; overflow: hidden; color: #bdae96; font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.completion-report-meta { color: #95866e; font-size: 10px; }
.completion-report.claude .completion-report-head strong { color: #efb494; }
.completion-report.gemini .completion-report-head strong { color: #c3c7f1; }
.completion-report.beiko .completion-report-head strong { color: #edb8c9; }
.completion-focus .speech-bubble { animation: completion-result-focus 2.6s ease-out var(--focus-offset, 0ms) both; }
.completion-focus .dialogue-portrait { animation: completion-portrait-hop .9s ease-out calc(250ms + var(--focus-offset, 0ms)) both; }
@keyframes completion-card-in { from { opacity: 0; transform: translate(18px,22px) scale(.94); } to { opacity: 1; transform: translate(0,0) scale(1); } }
@keyframes completion-character-in { 0% { opacity: 0; transform: translateY(35px) scale(.8) rotate(-5deg); } 65% { opacity: 1; transform: translateY(-5px) scale(1.04) rotate(2deg); } 100% { opacity: 1; transform: translateY(0) scale(1) rotate(0); } }
/* 스크롤이 닿을 즈음 금빛 테두리가 두 번 맥박치듯 번지고, 살짝 튀어 올랐다 가라앉는다 */
@keyframes completion-result-focus {
  0% { transform: scale(1); box-shadow: 0 0 0 0 #d4ac7000; }
  14% { transform: scale(1.025); box-shadow: 0 0 0 5px #e9c48acc, 0 0 36px #d4ac7099; }
  28% { transform: scale(1); box-shadow: 0 0 0 2px #d4ac7088, 0 0 18px #d4ac7044; }
  42% { transform: scale(1.015); box-shadow: 0 0 0 5px #e9c48aaa, 0 0 30px #d4ac7077; }
  60% { transform: scale(1); box-shadow: 0 0 0 3px #d4ac7066, 0 0 20px #d4ac7033; }
  100% { transform: scale(1); box-shadow: 0 7px 22px #00000014; }
}
@keyframes completion-portrait-hop { 0%,100% { transform: translateY(0); } 30% { transform: translateY(-8px); } 55% { transform: translateY(0); } 75% { transform: translateY(-3px); } }
@media (max-width: 640px) {
  .completion-reports { right: 12px; bottom: calc(88px + env(safe-area-inset-bottom)); width: calc(100vw - 24px); }
  .completion-report { min-height: 128px; border-radius: 15px; padding-right: 12px; }
  .completion-report-character { flex-basis: 88px; margin-right: 10px; }
  .completion-report-character img { height: 138px; }
  .completion-report-copy { gap: 4px; padding: 10px 0; }
  .completion-report-head strong { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .completion-report, .completion-report-character img, .completion-focus .speech-bubble, .completion-focus .dialogue-portrait { animation: none; } }

/* 사이드바: 이 대화에서 일하는 비서가 귀엽게 돌고 있다 */
.conv-item { position: relative; }
.conv-item.working { padding-right: 78px; border-color: #c9895a40; background: linear-gradient(100deg,#3a2b1d70,#2a211a40); overflow: hidden; }
.conv-item.working::after { content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 40%; background: linear-gradient(90deg,transparent,#e7a275,transparent); animation: task-bar 1.6s ease-in-out infinite; }
.conv-item .s-working { display: flex; align-items: center; gap: 2px; color: #e7b98c; }
.conv-item .s-working i { width: 3px; height: 3px; margin-left: 2px; border-radius: 50%; background: currentColor; animation: dot-hop 1.1s ease-in-out infinite; }
.conv-item .s-working i:nth-of-type(2) { animation-delay: .15s; }
.conv-item .s-working i:nth-of-type(3) { animation-delay: .3s; }
@keyframes dot-hop { 0%,60%,100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-3px); opacity: 1; } }
.conv-crew { position: absolute; right: 30px; top: 50%; display: flex; flex-direction: row-reverse; transform: translateY(-50%); pointer-events: none; }
.crew-face { position: relative; width: 36px; height: 36px; margin-left: -12px; border-radius: 50%; overflow: hidden; border: 2px solid #e7a275; background: #14120e; box-shadow: 0 0 0 0 #e7a27555, 0 3px 8px #0006; animation: crew-bob 1.3s ease-in-out infinite, crew-ring 1.8s ease-out infinite; }
.crew-face:nth-child(2) { animation-delay: .22s; }
.crew-face:nth-child(3) { animation-delay: .44s; }
.crew-face.codex { border-color: #6fbba3; box-shadow: 0 0 0 0 #6fbba355, 0 3px 8px #0006; }
.crew-face.gemini { border-color: #98a4e0; }
.crew-face.beiko { border-color: #dc9db4; }
.crew-face img { display: block; width: 100%; height: 230%; object-fit: cover; object-position: 50% 4%; }
@keyframes crew-bob { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-4px) rotate(3deg); } }
@keyframes crew-ring { 0% { box-shadow: 0 0 0 0 #e7a27580, 0 3px 8px #0006; } 70%,100% { box-shadow: 0 0 0 7px #e7a27500, 0 3px 8px #0006; } }
@media (prefers-reduced-motion: reduce) { .crew-face, .conv-item.working::after, .conv-item .s-working i { animation: none; } }

.queued-request { margin: 9px 0 0; padding: 7px 11px; border-left: 3px solid #c9895a80; border-radius: 3px 8px 8px 3px; background: #ffffff0a; color: #eadcc4; font-size: 12.5px; line-height: 1.5; overflow-wrap: anywhere; }
.queued-request small { display: block; margin-bottom: 1px; font-size: 10px; color: #b79f7c; letter-spacing: .04em; }
.codex .queued-request { border-left-color: #6fbba380; }
.trans-card { border-color: #7b88b745; background: #181a26; border-radius: 10px; }
.trans-head { border-bottom-color: #7b88b733; background: #202437; padding: 7px 12px; }
.trans-lang { color: #b9c4ee; font-size: 11px; letter-spacing: .3px; }
.copy-btn { background: #2c324d; border-color: #6370a8; color: #e4e9ff; font-size: 11px; padding: 4px 10px; }
.copy-btn:hover { background: #384063; border-color: #8b98d6; }
.copy-btn.copied { background: #243b2f; border-color: #6ca384; color: #b8eccb; }
.trans-text { color: #f2ecdf; font-size: 13px; line-height: 1.7; padding: 11px 13px; }


.task-approve { display: grid; place-items: center; flex: none; width: 58px; height: 58px; margin: 8px 2px 0 auto; padding: 2px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; transition: transform .16s ease, filter .16s ease; }
.task-approve:hover { transform: rotate(-7deg) scale(1.08); filter: drop-shadow(0 3px 5px #d6453d55); }
.task-approve:active { transform: translateY(2px) scale(.93); }
.task-approve:focus-visible { outline: 2px solid #f0a39b; outline-offset: 2px; }
.task-approve-image { display: block; width: 100%; height: 100%; object-fit: contain; }
.stamp-fx { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.stamp-fx-mark { position: absolute; right: 2px; bottom: 0; width: 58px; opacity: 0; animation: stamp-slam .4s cubic-bezier(.2,.9,.3,1) .32s both; }
.stamp-fx-tool { position: absolute; right: 2px; bottom: 29px; width: 58px; opacity: 0; animation: stamp-tool .85s ease-in-out both; filter: drop-shadow(0 6px 6px #0006); }
.task-card.approving { animation: task-shake .3s linear .34s, task-out .5s ease-in 1.15s forwards; overflow: visible; }
@keyframes stamp-tool { 0% { opacity: 0; transform: translateY(-110px); } 38% { opacity: 1; transform: translateY(0); } 55% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-110px); } }
@keyframes stamp-slam { 0% { opacity: 0; transform: scale(2.2) rotate(-24deg); } 55% { opacity: 1; transform: scale(.9) rotate(-12deg); } 100% { opacity: .94; transform: scale(1) rotate(-12deg); } }
@keyframes task-shake { 0%,100% { transform: none; } 25% { transform: translate(-3px, 2px); } 50% { transform: translate(3px, -1px); } 75% { transform: translate(-2px, 1px); } }
@keyframes task-out { from { opacity: 1; max-height: 420px; } to { opacity: 0; transform: translateX(36px) scale(.96); max-height: 0; padding-top: 0; padding-bottom: 0; margin-top: -10px; border-width: 0; } }
@media (prefers-reduced-motion: reduce) { .stamp-fx-tool, .stamp-fx-mark, .task-card.approving { animation: none; } .stamp-fx-mark { opacity: .94; transform: rotate(-12deg); } }

/* 상단 캐릭터 카드 줄: 가운데 영역 폭을 넘지 않게 줄어들고, 그래도 모자라면 그 줄 안에서만 가로로 넘긴다.
   (카드가 업무 패널을 덮거나 페이지 전체가 옆으로 밀려 사이드바가 잘리던 문제) */
html, body { overflow-x: hidden; }
.app { overflow: hidden; }
.main { min-width: 0; overflow: hidden; }
.topbar { position: relative; z-index: 2; min-width: 0; }
.conv-title { order: 1; flex: 1 1 0; min-width: 0; }
.tasks-toggle { order: 2; margin-left: auto; }
#target-picker { order: 3; flex: 1 1 100%; border: 0; border-radius: 0; min-width: 0; max-width: 100%; justify-content: flex-start; overflow-x: auto; overflow-y: hidden; padding: 3px 2px 6px; scrollbar-width: thin; scrollbar-color: #6b5436 transparent; }
#target-picker button.target-card { flex: 1 1 0; min-width: 104px; max-width: 168px; height: 148px; }
#target-picker button.target-card.target-auto { flex: 0 0 84px; min-width: 84px; align-self: stretch; margin-top: 0; font-size: inherit; justify-content: center; }
#target-picker button.target-card.target-auto .target-auto { margin-top: 0; }
#target-picker button.target-card:hover:not(:disabled) { transform: none; }
.target-portrait { height: 176px; bottom: -30px; }
@media (max-width: 480px) {
  #target-picker button.target-card { min-width: 92px; height: 132px; }
  #target-picker button.target-card.target-auto { flex-basis: 72px; min-width: 72px; }
  .target-portrait { height: 160px; bottom: -28px; }
}

.task-section { display: flex; align-items: center; gap: 8px; }
.task-approve-all { margin-left: auto; padding: 2px 10px; border: 1px solid #d6453d88; border-radius: 99px; background: #d6453d14; color: #f0a39b; font-size: 10.5px; font-weight: 600; letter-spacing: .02em; cursor: pointer; }
.task-approve-all:hover:not(:disabled) { background: #d6453d33; color: #ffc2bb; }
.task-approve-all:disabled { opacity: .5; cursor: default; }

/* ── 승인 골드(자산) ───────────────────────────── */
.gold-wallet { display: flex; align-items: center; gap: 5px; margin-left: auto; margin-right: 8px; padding: 4px 10px; border: 1px solid #b9954b88; border-radius: 99px; background: linear-gradient(180deg,#3a2f17,#2a2212); color: #f6dc9a; font-size: 11px; white-space: nowrap; }
.gold-wallet .gold-icon { color: #f2c14e; text-shadow: 0 0 6px #f2c14e99; font-size: 12px; }
.gold-wallet .gold-label { color: #c9b07a; }
.gold-wallet .gold-amount { font-size: 13px; font-variant-numeric: tabular-nums; color: #ffe8a8; }
.gold-wallet .gold-unit { color: #c9b07a; font-size: 10px; }
/* 자산이 쌓일 때: 도장 자리에서 금빛이 터지고, 동전이 빛 꼬리를 그리며 지갑으로 들어가 지갑이 반짝 빛난다 */
.gold-wallet { position: relative; overflow: hidden; }
.gold-wallet::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(110deg, transparent 30%, #fff6d0cc 48%, transparent 66%) -160% 0 / 250% 100% no-repeat; opacity: 0; }
.gold-wallet.bump { animation: gold-bump .9s cubic-bezier(.2,1.4,.4,1); }
.gold-wallet.bump::after { animation: gold-shine .9s ease-out .1s; }
.gold-wallet .gold-icon { display: inline-block; }
.gold-wallet.bump .gold-icon { animation: gold-icon-spin .9s ease-out; }
.gold-wallet.bump .gold-amount { animation: gold-amount-glow 1.4s ease-out; }
@keyframes gold-bump {
  0% { transform: scale(1); box-shadow: 0 0 0 0 #f2c14e00; border-color: #b9954b88; }
  30% { transform: scale(1.22); box-shadow: 0 0 0 4px #f2c14e55, 0 0 26px 6px #f2c14ecc, 0 0 60px 12px #ffd96666; border-color: #ffe9a8; }
  100% { transform: scale(1); box-shadow: 0 0 0 0 #f2c14e00; border-color: #b9954b88; }
}
@keyframes gold-shine { 0% { opacity: 1; background-position: -160% 0; } 100% { opacity: 1; background-position: 160% 0; } }
@keyframes gold-icon-spin { 0% { transform: rotateY(0); text-shadow: 0 0 6px #f2c14e99; } 50% { text-shadow: 0 0 14px #fff3b0, 0 0 26px #f2c14e; } 100% { transform: rotateY(720deg); text-shadow: 0 0 6px #f2c14e99; } }
@keyframes gold-amount-glow { 0%, 100% { color: #ffe8a8; text-shadow: none; } 25% { color: #fffbe8; text-shadow: 0 0 8px #fff3b0, 0 0 18px #f2c14e; } }
.gold-pop { position: fixed; z-index: 1001; pointer-events: none; color: #ffe27a; font: 800 26px/1 Georgia, serif; letter-spacing: .5px; text-shadow: 0 2px 0 #6b4a0e, 0 0 12px #f2c14e, 0 0 28px #ffd966aa; animation: gold-pop 1.4s cubic-bezier(.2,1.2,.4,1) both; }
@keyframes gold-pop { 0% { opacity: 0; transform: translate(-50%,6px) scale(.4); } 22% { opacity: 1; transform: translate(-50%,-22px) scale(1.35); } 45% { transform: translate(-50%,-30px) scale(1.1); } 100% { opacity: 0; transform: translate(-50%,-70px) scale(1); } }
.gold-burst { position: fixed; z-index: 999; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, #fffbe6 0, #ffe27a 30%, #f2c14e88 55%, transparent 70%); box-shadow: 0 0 30px 10px #f2c14e88; animation: gold-burst .9s ease-out both; }
.gold-burst::before { content: ''; position: absolute; inset: -30px; border-radius: 50%; background: repeating-conic-gradient(from 0deg, #fff3b0cc 0 4deg, transparent 4deg 30deg); -webkit-mask: radial-gradient(circle, transparent 20%, #000 32%, transparent 70%); mask: radial-gradient(circle, transparent 20%, #000 32%, transparent 70%); }
@keyframes gold-burst { 0% { opacity: 0; transform: scale(.2) rotate(0); } 20% { opacity: 1; } 100% { opacity: 0; transform: scale(4.5) rotate(40deg); } }
.gold-coin { position: fixed; z-index: 1000; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; pointer-events: none; font-size: 0; opacity: 0; background: radial-gradient(circle at 35% 30%, #fffbe0, #ffd966 40%, #f2c14e 62%, #a8741a); box-shadow: 0 0 10px 2px #f2c14ecc, 0 0 22px 4px #ffd96666, -6px 6px 12px -2px #f2c14e88; animation: gold-fly 1s cubic-bezier(.55,0,.75,.35) both; }
@keyframes gold-fly {
  0% { opacity: 0; transform: translate(0,0) scale(.4) rotateY(0); }
  18% { opacity: 1; transform: translate(var(--sx),var(--sy,-26px)) scale(1.15) rotateY(180deg); }
  35% { transform: translate(var(--sx),calc(var(--sy,-26px) + 6px)) scale(1) rotateY(360deg); }
  92% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx),var(--dy)) scale(.45) rotateY(900deg); }
}
.gold-sparkle { position: fixed; z-index: 1001; pointer-events: none; color: #fff3b0; font-size: 12px; line-height: 1; margin: -6px 0 0 -6px; text-shadow: 0 0 6px #ffd966, 0 0 12px #f2c14e; animation: gold-sparkle 1s ease-out both; }
@keyframes gold-sparkle { 0% { opacity: 0; transform: translate(0,0) scale(.3) rotate(0); } 30% { opacity: 1; transform: translate(calc(var(--tx) * .7),calc(var(--ty) * .7)) scale(1.3) rotate(90deg); } 100% { opacity: 0; transform: translate(var(--tx),var(--ty)) scale(.4) rotate(200deg); } }
@media (prefers-reduced-motion: reduce) { .gold-wallet.bump, .gold-wallet.bump::after, .gold-wallet.bump .gold-icon, .gold-wallet.bump .gold-amount { animation: none; } }
