84 lines
7.0 KiB
CSS
84 lines
7.0 KiB
CSS
.agent-home {
|
|
height: 100%;
|
|
min-width: 0;
|
|
overflow: auto;
|
|
padding: 44px 40px 48px;
|
|
background: #fffdf9;
|
|
color: #273246;
|
|
}
|
|
.agent-home-content { max-width: 1200px; margin: 0 auto; }
|
|
.agent-home-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
|
|
.agent-home-intro { min-width: 0; }
|
|
.agent-home-intro h1 { margin: 0; font-size: 30px; font-weight: 700; line-height: 1.3; letter-spacing: -.5px; }
|
|
.agent-home-greeting { position: relative; display: flex; align-items: center; gap: 14px; padding-block: 12px; }
|
|
.agent-home-greeting h1 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.7; letter-spacing: -.6px; }
|
|
.agent-home-hello { display: inline-block; margin-right: 5px; color: #7263a6; transform: rotate(-6deg); }
|
|
.agent-home-create-word, .agent-home-chat-word { position: relative; isolation: isolate; display: inline-block; padding-inline: 4px; white-space: nowrap; }
|
|
.agent-home-create-word::before, .agent-home-chat-word::before { position: absolute; z-index: -1; inset: 12px 0 4px; border-radius: 8px; transform: rotate(-3deg); background: #ffe7bb; content: ''; }
|
|
.agent-home-chat-word::before { background: #e3eee8; transform: rotate(3deg); }
|
|
.agent-home-greeting-spark { display: grid; flex-shrink: 0; width: 42px; height: 42px; place-items: center; border-radius: 14px; background: #f0eafc; color: #8a72ba; transform: rotate(-8deg); }
|
|
.agent-home-greeting-spark svg { width: 27px; height: 27px; }
|
|
.agent-home-greeting-doodle { flex-shrink: 0; width: 38px; height: 38px; color: #729785; animation: agent-home-doodle-bob 5s ease-in-out infinite; }
|
|
@keyframes agent-home-doodle-bob { 0%, 100% { transform: translateY(0) rotate(5deg); } 50% { transform: translateY(-3px) rotate(-3deg); } }
|
|
.agent-home-header-actions { display: flex; flex-shrink: 0; align-items: center; gap: 8px; }
|
|
.agent-home button { min-height: 44px; }
|
|
.agent-home-create { gap: 8px; min-height: 48px !important; padding-inline: 20px; border-radius: 14px; font-size: 15px; box-shadow: 0 3px 0 #af340d; }
|
|
.agent-home-create svg { width: 19px; height: 19px; }
|
|
.agent-home-back { gap: 6px; margin: -12px 0 16px -12px; color: #606c7e; }
|
|
.agent-home-back svg { width: 17px; height: 17px; }
|
|
.agent-home-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 292px), 1fr)); gap: 20px; }
|
|
.agent-home-card { display: flex; min-width: 0; flex-direction: column; padding: 24px; border: 1px solid #dce5f3; border-radius: 24px; background: #f1f6ff; transition: border-color 160ms ease, box-shadow 160ms ease; }
|
|
.agent-home-card[data-tone="1"] { background: #f6f2ff; border-color: #e5dcf5; }
|
|
.agent-home-card[data-tone="2"] { background: #fff5e9; border-color: #f0e2ce; }
|
|
.agent-home-card:hover, .agent-home-card:focus-within { border-color: #bcc9df; box-shadow: 0 4px 16px #2732460a; }
|
|
.agent-home-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
|
|
.agent-home-avatar { width: 72px; height: 72px; flex-shrink: 0; overflow: hidden; border: 3px solid #fff; border-radius: 22px; background: #fff6de; box-shadow: 0 2px 5px #27324608; }
|
|
.agent-home-avatar img { width: 100%; height: 100%; object-fit: cover; }
|
|
.agent-home-avatar .agent-home-builtin-avatar { image-rendering: pixelated; }
|
|
.agent-home-status { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 5px 10px; border-radius: 20px; font-size: 12px; font-weight: 500; line-height: 1.5; color: #765229; background: #fff9eb; white-space: nowrap; }
|
|
.agent-home-status::before { width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: #af7c36; content: ''; }
|
|
.agent-home-card[data-state="ready"] .agent-home-status { color: #38684d; background: #e3f4e9; }
|
|
.agent-home-card[data-state="ready"] .agent-home-status::before { background: #498264; }
|
|
.agent-home-card[data-state="inactive"] .agent-home-status { color: #606c7e; background: #e9edf2; }
|
|
.agent-home-card[data-state="inactive"] .agent-home-status::before { background: #778294; }
|
|
.agent-home-card h2 { overflow: hidden; font-size: 21px; font-weight: 650; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
|
|
.agent-home-purpose { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; min-height: 78px; overflow: hidden; margin-top: 8px; font-size: 15px; line-height: 26px; color: #606c7e; white-space: pre-wrap; overflow-wrap: anywhere; }
|
|
.agent-home-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: auto; padding-top: 20px; }
|
|
.agent-home-card-primary { gap: 7px; border-radius: 12px; font-size: 14px; }
|
|
.agent-home-card-primary svg { width: 17px; height: 17px; }
|
|
.agent-home-card-primary.border { border-color: #c6ccda; background: #ffffffb3; color: #35435b; }
|
|
.agent-home-adjust { padding-inline: 9px; border-radius: 12px; color: #546176; }
|
|
.agent-home-delete { gap: 5px; margin-left: auto; padding-inline: 8px; border-radius: 12px; color: #836b73; }
|
|
.agent-home-delete svg { width: 16px; height: 16px; }
|
|
.agent-home-delete:hover { color: #ac3d49; background: #fce9e9; }
|
|
.agent-home-delete-dialog { border-radius: 24px; }
|
|
.agent-home-empty { display: flex; min-height: 410px; align-items: center; justify-content: center; flex-direction: column; padding: 48px 24px; border: 1px solid #e7e3f1; border-radius: 28px; background: #f7f5fd; text-align: center; }
|
|
.agent-home-empty-icon { display: grid; width: 96px; height: 96px; place-items: center; margin-bottom: 24px; border-radius: 30px; background: #e8e5fa; color: #7161a5; }
|
|
.agent-home-empty-icon svg { width: 52px; height: 52px; }
|
|
.agent-home-empty h2 { font-size: 25px; font-weight: 650; line-height: 1.5; }
|
|
.agent-home-empty p { margin: 12px 0 28px; font-size: 16px; line-height: 1.9; color: #606c7e; }
|
|
.agent-home-loading { display: flex; min-height: 280px; align-items: center; justify-content: center; flex-direction: column; gap: 16px; color: #606c7e; }
|
|
.agent-home-loading svg { width: 38px; height: 38px; color: #8273a9; }
|
|
.agent-home-error { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; padding: 12px 16px; border: 1px solid #e3dfd6; border-radius: 14px; background: #fff; font-size: 14px; }
|
|
.agent-home-error p { overflow-wrap: anywhere; }
|
|
@media (max-width: 1150px) {
|
|
.agent-home { padding: 32px 28px 40px; }
|
|
}
|
|
@media (max-width: 760px) {
|
|
.agent-home { padding: 24px 20px 32px; }
|
|
.agent-home-header { align-items: flex-start; flex-wrap: wrap; gap: 18px; margin-bottom: 28px; }
|
|
.agent-home-intro h1 { font-size: 27px; }
|
|
.agent-home-greeting { gap: 10px; }
|
|
.agent-home-greeting h1 { font-size: 26px; }
|
|
.agent-home-greeting-doodle { display: none; }
|
|
.agent-home-header-actions { flex-wrap: wrap; }
|
|
.agent-home-card { padding: 22px; }
|
|
.agent-home-empty { min-height: 360px; padding-inline: 20px; }
|
|
.agent-home-empty h2 { font-size: 22px; }
|
|
.agent-home-error { align-items: flex-start; flex-wrap: wrap; }
|
|
}
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.agent-home-card { transition: none; }
|
|
.agent-home-greeting-doodle { animation: none; }
|
|
}
|