.form-panel { margin-top: 18px; }
.inline-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 18px 20px; }
.inline-form select { border: 1px solid #d7d9dd; border-radius: 7px; padding: 9px 11px; background: #fff; }
.check { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.check input { width: auto; }
.ai-settings{width:100%;max-width:720px}.ai-settings-form{padding:18px}.ai-settings-form .form-actions{margin-top:0}.ai-settings-form .button.primary{min-width:124px}.ai-settings-form .check{margin:0}
@media(max-width:650px){.ai-settings-form .form-row{grid-template-columns:1fr}.ai-settings-form .button.primary{width:100%}}
.row-button { border: 0; background: none; color: var(--accent); cursor: pointer; }

:root{color-scheme:light;--bg:#f5f7fa;--panel:#fff;--panel2:#f7f8fa;--panel3:#eef1f5;--line:#dfe3e8;--soft:#e9ecf0;--text:#1f2328;--muted:#667085;--muted2:#8b95a5;--accent:#447bba;--green:#21875b;--yellow:#9a6b13;--red:#c43d4b;--blue:#3974b8}
body{background:var(--bg)}.sidebar{background:#fff}.brand-symbol{background:var(--accent);box-shadow:none;color:#fff}.nav-item:hover{background:#f2f4f7;color:var(--text)}.nav-item.active{background:#eaf1f8;color:#245d98}.nav-item b{border-color:var(--line);color:var(--muted)}.avatar{background:#e8eef6;color:#2d659f}.topbar{background:#fffffff5;backdrop-filter:none}.icon-button:hover{color:var(--text)}.health-chip{border-color:#cce7d8;background:#eef9f3;color:var(--green)}.health-chip i{box-shadow:none}.metric.accent:after{display:none}.button.primary{border-color:var(--accent);background:var(--accent)}.button.danger{border-color:#efc9ce;background:#fff4f5;color:var(--red)}.data-table th{background:#f7f8fa}.data-table td{color:#3f4650}.data-table tbody tr:hover{background:#f8fafc}.mono{color:#596273}.amount{color:var(--text)}
.pill{border-color:var(--line);background:#f5f6f8;color:var(--muted)}.pill.completed,.pill.succeeded,.pill.active,.pill.delivered{color:var(--green);border-color:#cce7d8;background:#eef9f3}.pill.processing,.pill.sending,.pill.queued{color:var(--blue);border-color:#cbddf0;background:#eef5fb}.pill.pending,.pill.awaiting_payment,.pill.awaiting_selection,.pill.awaiting_confirmation{color:var(--yellow);border-color:#eadcb8;background:#fff9e9}.pill.failed,.pill.refunded,.pill.dead,.pill.blocked{color:var(--red);border-color:#efc9ce;background:#fff4f5}
.drawer{background:#fff}.modal-backdrop{background:#18202d59;backdrop-filter:none}.modal-card{border-color:var(--line);background:#fff;box-shadow:none}.form input,.form select,.form textarea{background:#fff;color:var(--text)}.secret-box{border-color:#ced9e7;background:#f2f6fa;color:#31577f}.toast{border-color:var(--line);background:#fff;color:var(--text);box-shadow:none}.auth-page{background:var(--bg)}.auth-card{background:#fff}.bar{background:#e6e9ee}.bar i{background:var(--accent)}.activity-icon{color:var(--accent)}
.user-card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px}.user-card{border:1px solid var(--line);border-radius:12px;background:#fff;padding:16px;cursor:pointer}.user-card:hover{border-color:#aabed3}.user-card-header{display:flex;align-items:center;gap:12px}.user-avatar{width:52px;height:52px;border-radius:50%;object-fit:cover;flex:0 0 auto;border:1px solid var(--line)}.user-avatar.fallback{display:grid;place-items:center;background:#eaf1f8;color:#326da8;font-size:18px;font-weight:700}.user-avatar.large{width:64px;height:64px}.user-info{min-width:0;display:grid;gap:3px}.user-info a{color:var(--text);font-size:14px;font-weight:650;text-decoration:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-info a:hover,.drawer-profile a,.result-item a{color:var(--accent)}.user-info span{color:var(--muted);font-size:11px}.user-balance{margin-top:14px;padding:12px;border-radius:9px;background:var(--panel2);display:grid;grid-template-columns:1fr 1fr;gap:12px}.user-balance div{display:grid;gap:3px}.user-balance span{color:var(--muted2);font-size:9px;text-transform:uppercase;letter-spacing:.05em}.user-balance strong{font-size:11px}.user-card-footer{margin-top:13px;padding-top:12px;border-top:1px solid var(--soft);display:flex;justify-content:space-between;align-items:center;gap:12px;color:var(--muted);font-size:10px}
.drawer-profile{display:flex;align-items:center;gap:12px;padding-bottom:16px}.drawer-profile>div{display:grid;gap:4px}.drawer-profile strong{font-size:14px}.drawer-profile a{font-size:10px;text-decoration:none}.result-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.result-item{overflow:hidden;border:1px solid var(--line);border-radius:9px;background:#fff}.result-media{display:block;aspect-ratio:1;background:#eef1f5}.result-media img,.result-media video{width:100%;height:100%;display:block;object-fit:cover}.result-item>div{padding:8px;display:grid;gap:3px}.result-item strong{font-size:10px}.result-item span{color:var(--muted);font-size:9px}.result-item a{font-size:9px;text-decoration:none}@media(max-width:540px){.user-card-grid{grid-template-columns:1fr}}
.support-profile{padding:0 0 1px}.support-profile .drawer-profile{padding-bottom:10px}.support-profile .drawer-profile span{color:var(--muted);font-size:10px}
.brand-symbol{display:block;object-fit:contain;flex:0 0 auto;background:transparent;box-shadow:none;font-size:0;animation:photoalive-logo-colors 7s linear infinite}
@keyframes photoalive-logo-colors{from{filter:hue-rotate(0deg) saturate(1.15)}to{filter:hue-rotate(360deg) saturate(1.15)}}

.scenario-editor{display:grid;gap:16px;max-width:1240px;margin:0 auto}.scenario-toolbar{position:sticky;top:100px;z-index:3;min-height:70px;padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:#fffffff5;display:grid;grid-template-columns:minmax(180px,1fr) auto auto;align-items:center;gap:18px}.scenario-toolbar>div:first-child{display:grid;gap:3px}.scenario-toolbar strong{font-size:14px}.scenario-toolbar span{color:var(--muted);font-size:10px}.scenario-toolbar span.dirty{color:var(--yellow)}.scenario-variables{display:flex;align-items:center;gap:5px}.scenario-variables code{padding:4px 7px;border:1px solid var(--line);border-radius:6px;background:var(--panel2);color:#536273;font:10px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace}.scenario-save{min-width:158px;height:38px}.scenario-save:disabled{border-color:var(--line);background:var(--panel3);color:var(--muted2);cursor:default}.scenario-section{border:1px solid var(--line);border-radius:12px;background:var(--panel);overflow:hidden}.scenario-section-head{min-height:58px;padding:0 18px;border-bottom:1px solid var(--soft);display:flex;align-items:center;justify-content:space-between;gap:12px}.scenario-section-head h2{margin:0;font-size:14px;font-weight:650}.scenario-section-head span{color:var(--muted2);font-size:10px}.scenario-grid{padding:16px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.scenario-field{min-width:0;display:grid;gap:7px}.scenario-field-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.scenario-field-head strong{color:#434a54;font-size:11px;font-weight:600}.scenario-field-head small{color:var(--muted2);font-size:9px;font-weight:400}.scenario-field textarea{width:100%;height:136px;padding:13px 14px;border:1px solid var(--line);border-radius:9px;background:#fbfcfd;color:var(--text);font-size:12px;line-height:1.55;outline:none;resize:vertical}.scenario-field textarea:hover{border-color:#c8d0da}.scenario-field textarea:focus{border-color:var(--accent);background:#fff}.scenario-prompts .scenario-field textarea{height:210px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px}.scenario-section:last-child{margin-bottom:20px}
 .scenario-attachment{display:flex;align-items:center;flex-wrap:wrap;gap:8px;color:var(--muted);font-size:10px}.scenario-attachment input[type=file]{max-width:100%;font-size:10px}.scenario-attachment [data-attachment-preview]{width:56px;height:42px;border:1px solid var(--line);border-radius:6px;overflow:hidden;background:var(--panel2)}.scenario-attachment [data-attachment-preview][hidden]{display:none}.scenario-attachment img{width:100%;height:100%;display:block;object-fit:cover}.scenario-attachment .button{min-height:28px;padding:0 9px;font-size:10px}
@media(max-width:1050px){.scenario-toolbar{grid-template-columns:1fr auto}.scenario-variables{grid-column:1/-1;grid-row:2;flex-wrap:wrap}.scenario-grid{grid-template-columns:1fr}}
@media(max-width:650px){.scenario-toolbar{top:82px;grid-template-columns:1fr}.scenario-save{width:100%}.scenario-variables{display:none}.scenario-grid{padding:12px}.scenario-field textarea{height:160px}}
