* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

body {
    background-color: #F1F3F5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    background-color: #F1F3F5;
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.nav-bar {
    min-height: 56px;
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
    padding: 0 24px;
    padding-top: env(safe-area-inset-top);
    gap: 16px;
    flex-shrink: 0;
}

.nav-bar .back-btn img {
    width: 24px;
    height: 24px;
    display: block;
}

.nav-bar .nav-title {
    font-weight: 500;
    font-size: 16px;
    color: #000000;
}

.hero-section {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 16px 100px;
    width: 100%;
}

.hero-section .logo {
    width: 60px;
    height: 60px;
    margin-bottom: 24px;
}

.hero-section .logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.hero-section .welcome-text {
    font-weight: 500;
    font-size: 16px;
    color: #000000;
    margin-bottom: 8px;
    text-align: center;
}

.hero-section .sub-welcome-text {
    font-weight: 500;
    font-size: 16px;
    color: #666666;
    text-align: center;
    width: 100%;
    line-height: 1.6;
}

.has-messages .hero-section {
    display: none;
}

.chat-list {
    flex: 1;
    min-height: 0;
    width: 100%;
    overflow-y: auto;
    overflow-anchor: none;
    padding: 15px 16px 12px;
    display: none;
    flex-direction: column;
    gap: 16px;
    scrollbar-width: none;
}

.has-messages .chat-list {
    display: flex;
}

.chat-list::-webkit-scrollbar {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-message {
    width: 100%;
    padding: 5px 22px;
    border-radius: 16px;
    font-size: 16px;
    line-height: 26px;
    word-wrap: break-word;
    animation: fadeIn 0.2s ease;
}

.user-message {
    align-self: flex-end;
    background-color: #D0E5FE;
    color: #000000;
    border-radius: 10px 0px 10px 10px;
    font-weight: 400;
}

.ai-message {
    align-self: stretch;
    width: 100%;
    background-color: #FFFFFF;
    color: #000000;
    border-radius: 0px 10px 10px 10px;
    font-weight: 400;
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loading-icon {
    width: 24px;
    height: 19px;
    object-fit: contain;
    animation: spin 1s linear infinite;
}

.thinking {
    align-self: flex-start;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 6px 22px;
    height: 36px;
    border-radius: 10px 0px 10px 10px;
}

.thinking span {
    line-height: 26px;
    font-size: 16px;
}

/* Thought Box Styles */
.cot-section {
    background-color: #F7F7F7; /* Light gray background */
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    border-left: 3px solid #ccc; /* Gray quote bar */
    font-size: 14px;
    color: #333;
}

.cot-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-weight: 500;
    color: #666;
    font-size: 13px;
}

.cot-content {
    white-space: pre-wrap;
    line-height: 1.6;
    color: #444;
}

/* Verbose Status Bar */
.verbose-log-container {
    background-color: #eef5fe; /* Very light blue */
    border-radius: 6px;
    padding: 6px 10px;
    margin-bottom: 8px;
    font-size: 12px;
    color: #007AFF;
    display: flex;
    align-items: center;
    border-left: none; /* Remove border for status bar style */
}

.verbose-icon {
    margin-right: 6px;
    font-size: 14px;
}

.cot-section {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}

.cot-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cot-header span {
    font-size: 14px;
    color: #000000;
}

.cot-content {
    border-left: 1px solid #D9D9D9;
    padding-left: 10px;
    margin-left: 2px;
    font-size: 12px;
    line-height: 19px;
    color: #000000;
    min-height: 20px;
    margin-top: 12px;
}

.answer-section {
    font-size: 16px;
    line-height: 26px;
    color: #000000;
}

.cursor {
    display: inline-block;
    margin-left: 2px;
}

/* --- Briefing Banner Card --- */
.briefing-card {
    width: 100%;
    height: 64px;
    background-color: #E6F4F1;
    border-radius: 24px;
    margin: 16px 0 18px;
    padding: 0 10px 0 16px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.2s ease;
    animation: fadeIn 0.5s ease-out;
    box-sizing: border-box;
}

.briefing-card:active {
    transform: scale(0.98);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.briefing-left {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.briefing-left img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.briefing-middle {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.briefing-title {
    font-size: 13px;
    font-weight: 600;
    color: #1A1A1A;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.briefing-right {
    margin-left: 12px;
    flex-shrink: 0;
}

.briefing-btn {
    padding: 6px 14px;
    background-color: #1A1A1A;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 500;
    border-radius: 20px;
    white-space: nowrap;
    border: none;
    outline: none;
    cursor: pointer;
}

.task-card {
    background-color: #FFFFFF;
    border-radius: 18px; /* More rounded as requested */
    border: 1px solid #E5E8EA;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.08); /* Slightly heavier shadow */
    animation: fadeInUp 0.4s ease-out;
}

.task-card-header {
    display: flex;
    gap: 12px;
    align-items: center;
}

.task-card-img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background-color: #F8F8F8;
    overflow: hidden;
    flex-shrink: 0;
}

.task-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.task-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.task-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #1A1A1A;
}

.task-card-price {
    font-size: 16px;
    font-weight: 700;
    color: #FF3B30; /* Use a red for price to stand out */
}

.task-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.task-tag {
    font-size: 11px;
    color: #666666;
    background-color: #F2F2F2;
    padding: 2px 8px;
    border-radius: 4px;
}

.task-action-btn {
    align-self: center; /* Centered as requested */
    width: fit-content;
    min-width: 100px;
    height: 32px; /* Smaller height */
    padding: 0 16px;
    background-color: #007DFF;
    color: #FFFFFF;
    border-radius: 16px; /* Pill shape */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px; /* Slightly smaller font */
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s;
}

.task-action-btn:active {
    background-color: #0066CC;
}

/* --- Immersive Detail Layer --- */
.article-detail {
    position: absolute; /* Changed from fixed to absolute to stay within container */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #FFFFFF;
    z-index: 2000; /* Above input cluster and everything */
    display: flex;
    flex-direction: column;
    transform: translateX(100%); /* Hidden by default */
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* Smooth slide-in */
}

.article-detail.active {
    transform: translateX(0);
}

.detail-header {
    height: 44px;
    background-color: #FFFFFF;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    flex-shrink: 0;
}

.detail-header .back-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    color: #007DFF;
}

.detail-header .back-btn img {
    width: 20px;
    height: 20px;
    filter: invert(32%) sepia(96%) saturate(2367%) hue-rotate(202deg) brightness(101%) contrast(105%); /* HIMA Blue filter */
}

.detail-header .back-btn span {
    font-size: 14px;
    font-weight: 500;
}

.detail-header .detail-title {
    font-size: 16px;
    font-weight: 500;
    color: #000000;
}

.detail-header .header-spacer {
    width: 50px; /* Approximate width of back button to center title */
}

.iframe-container {
    flex: 1;
    width: 100%;
    background-color: #F1F3F5;
    overflow: hidden;
}

.iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.content-card {
    background-color: #F9F9F9; /* Updated bg color */
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px; /* Reduced gap */
    text-decoration: none;
    color: inherit;
    width: 100%;
    border: none; /* Removed border */
    animation: fadeInUp 0.4s ease-out; /* Add animation */
}

.content-card:active {
    background-color: #F0F0F0;
}

.card-body {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    justify-content: space-between;
}

.card-image {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background-color: #EEEEEE;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 0;
}

.card-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center vertically relative to image */
    min-height: 64px;
}

.card-title {
    font-size: 14px; /* 14px */
    font-weight: 700;
    color: #1A1A1A; /* Pure Black */
    line-height: 1.4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-desc {
    font-size: 12px;
    color: #888888;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    margin-top: 2px;
    width: 100%;
    border-top: 1px solid rgba(0, 0, 0, 0.06); /* Subtle separator line */
}

.card-source {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1; /* Allow it to take available space */
    min-width: 0; /* Prevent overflow */
}

.cert-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-source span {
    font-size: 11px;
    color: #999999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.card-actions img, .card-actions svg {
    width: 16px;
    height: 16px;
    opacity: 0.6;
    cursor: pointer;
}

.input-cluster {
    flex-shrink: 0;
    width: 100%;
    background-color: #F1F3F5;
    padding-bottom: env(safe-area-inset-bottom);
}

/* --- Guide Panel Styles --- */
.guide-panel {
    position: absolute; /* Changed from fixed to absolute to align with container width */
    bottom: 0;
    left: 0;
    width: 100%; /* Perfectly matches the input area width */
    height: auto; /* Allow content to dictate height */
    box-sizing: border-box;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 24px 24px 0 0;
    box-shadow: 0px -4px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    padding: 20px 20px calc(20px + env(safe-area-inset-bottom)) 20px; /* Reduced bottom padding + safe area */
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Smooth 300ms animation */
    display: flex;
    flex-direction: column;
    gap: 16px;
    visibility: hidden;
}

.guide-panel.active {
    transform: translateY(0);
    visibility: visible;
    bottom: 0; /* Stick to bottom */
}

.guide-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.guide-title {
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    display: flex;
    align-items: center;
}

.close-guide-btn {
    font-size: 24px;
    color: #999999;
    cursor: pointer;
    line-height: 1;
}

.guide-content {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Adjusted spacing to 8-10px range */
}

.guide-section {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.guide-label {
    width: 40px;
    font-size: 14px;
    color: #666666;
    margin-top: 6px; /* Align with tags */
    flex-shrink: 0;
}

.guide-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}

.guide-tag {
    padding: 6px 12px;
    background-color: #F5F5F5;
    color: #333333;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.guide-tag.selected {
    background-color: #007DFF;
    color: #FFFFFF;
}

/* --- Quick Actions Styles --- */
.quick-actions-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 12px;
}

/* Right side gradient mask */
.quick-actions-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 100%;
    background: linear-gradient(to right, rgba(241, 243, 245, 0), rgba(241, 243, 245, 1));
    pointer-events: none;
    z-index: 5;
    transition: opacity 0.3s ease;
}

/* Class to hide mask when scrolled to end */
.quick-actions-wrapper.at-end::after {
    opacity: 0;
}

.quick-actions {
    display: flex;
    justify-content: flex-start;
    gap: 8px; /* Refined gap */
    padding: 0 16px;
    transition: opacity 0.2s ease;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
    user-select: none;
}

.quick-actions::-webkit-scrollbar {
    display: none;
}

.quick-actions:active {
    cursor: grabbing;
}

.action-btn {
    flex: 0 0 86px; /* Optimized width: 3 full + 1 partial (approx 72%) on 360px screen */
    width: 86px;
    height: 36px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-color: #FFFFFF;
    border: 1px solid #F5F5F5;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.04); /* Enhanced shadow for layering */
    transition: transform 0.1s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.action-btn:active {
    transform: scale(0.95);
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.02);
}

.action-btn.active {
    background-color: rgba(0, 125, 255, 0.1);
    border-color: rgba(0, 125, 255, 0.2);
}

.action-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.action-btn.loading .btn-content img {
    animation: spin 1s linear infinite;
}

.action-btn.disabled {
    pointer-events: none;
    opacity: 0.4;
    filter: grayscale(1);
}

.action-btn.active span {
    color: #007DFF;
}

.action-btn.active img {
    filter: invert(32%) sepia(96%) saturate(2367%) hue-rotate(202deg) brightness(101%) contrast(105%);
}

.deep-think:not(.active) img {
    filter: brightness(0) opacity(0.9);
}

.btn-content {
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-content img {
    width: 16px;
    height: 16px;
    transition: filter 0.2s ease;
}

.btn-content span {
    font-weight: 500;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.9);
    transition: color 0.2s ease;
}

.input-area-container {
    padding: 0 16px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 100;
}

.keyboard-active .input-area-container {
    padding-bottom: 12px;
}

.voice-input-bar, .text-input-bar {
    width: 100%;
    height: 56px;
    background-color: #FFFFFF;
    border-radius: 16px;
    display: flex;
    align-items: center;
    padding: 0 21px;
    gap: 12px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.25s ease;
}

.text-input-box {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    /* overflow: hidden; Removed to allow text visibility */
}

.text-input-box textarea {
    width: 100%;
    border: none;
    outline: none;
    font-size: 14px; /* Changed from 16px to 14px */
    color: rgba(0, 0, 0, 0.9);
    background: transparent;
    resize: none; /* Disable manual resize */
    font-family: 'Inter', sans-serif;
    line-height: 1.4;
    padding: 14px 0; /* Optimized padding for visibility */
    height: 100%; /* Fill container */
    overflow-y: auto; /* Allow scrolling for long text */
    white-space: pre-wrap; /* Allow wrapping */
}

/* 
   Actually, standard textarea doesn't support ellipsis on overflow. 
   If user wants "ellipsis", usually that implies a single line or a static block. 
   For an input field, usually we just let it scroll or clamp height.
   User said: "Can wrap to 2 lines, exceed truncate display..."
   This behavior is very specific. 
   Let's try to simulate it by setting a max-height and overflow hidden.
*/

.icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    position: relative;
}

.icon-wrapper.right {
    width: 32px;
    height: 32px;
}

.icon-wrapper img {
    width: 100%;
    height: 100%;
}

.action-icon {
    transition: opacity 0.2s ease, transform 0.2s ease;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.voice-icon {
    opacity: 1;
    transform: scale(1);
}

.send-icon {
    opacity: 0;
    transform: scale(0.8);
    display: block !important;
}

.can-send .voice-icon {
    opacity: 0;
    transform: scale(0.8);
    display: none !important;
}

.can-send .send-icon {
    opacity: 1 !important;
    transform: scale(1);
    display: block !important;
}

.center-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.default-text {
    font-size: 16px;
    font-weight: 500;
    color: #000000;
}

.voice-input-bar.recording {
    background-color: #007DFF;
}

.voice-input-bar.cancel {
    background-color: #FF3B30;
}

.voice-input-bar.recording .icon-wrapper,
.voice-input-bar.cancel .icon-wrapper,
.voice-input-bar.recording .default-text,
.voice-input-bar.cancel .default-text {
    display: none;
}

.recording-wave {
    display: flex;
    align-items: center;
    gap: 4px;
}

.wave-dot {
    width: 4px;
    height: 4px;
    background-color: #FFFFFF;
    border-radius: 50%;
    animation: breathing 0.8s infinite ease-in-out alternate;
}

.wave-dot:nth-child(1) { animation-delay: 0s; }
.wave-dot:nth-child(2) { animation-delay: 0.1s; }
.wave-dot:nth-child(3) { animation-delay: 0.2s; }
.wave-dot:nth-child(4) { animation-delay: 0.3s; }
.wave-dot:nth-child(5) { animation-delay: 0.4s; }
.wave-dot:nth-child(6) { animation-delay: 0.5s; }
.wave-dot:nth-child(7) { animation-delay: 0.5s; }
.wave-dot:nth-child(8) { animation-delay: 0.4s; }
.wave-dot:nth-child(9) { animation-delay: 0.3s; }
.wave-dot:nth-child(10) { animation-delay: 0.2s; }
.wave-dot:nth-child(11) { animation-delay: 0.1s; }
.wave-dot:nth-child(12) { animation-delay: 0s; }

@keyframes breathing {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.5); opacity: 1; }
}

.hint-text {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.disclaimer {
    font-weight: 400;
    font-size: 10px;
    color: rgba(0, 0, 0, 0.4);
    text-align: center;
}

.keyboard-active .disclaimer {
    display: none;
}

.keyboard-panel {
    width: 100%;
    background-color: #E8EAED;
    display: none;
    flex-direction: column;
    flex-shrink: 0;
    padding-bottom: env(safe-area-inset-bottom);
}

.keyboard-active .keyboard-panel {
    display: flex;
}

.kb-toolbar {
    height: 42px;
    background-color: #E8EAED;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 7px 12px;
}

.kb-toolbar-btn {
    width: 30px;
    height: 30px;
    background-color: #FFFFFF;
    border-radius: 50%;
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.27);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.kb-toolbar-btn img {
    width: 24px;
    height: 24px;
}

.kb-layout {
    display: flex;
    flex-direction: column;
    padding: 4px;
    gap: 10px;
    background-color: #E8EAED;
}

.kb-row {
    display: flex;
    gap: 4px;
    justify-content: center;
    width: 100%;
}

.kb-key {
    background-color: #FFFFFF;
    border-radius: 6px;
    box-shadow: 0px 1px 0px 0px rgba(0, 0, 0, 0.27);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    flex: 1;
    height: 42px;
    cursor: pointer;
}

.kb-key:active {
    background-color: #e5e5e5;
}

.row-2 {
    padding: 0 18px;
}

.key-main {
    font-size: 23px;
    color: #000000;
    font-family: Roboto, sans-serif;
    line-height: 1;
}

.key-sub {
    font-size: 10px;
    color: #666666;
    font-weight: 700;
    position: absolute;
    top: 2px;
    right: 2px;
}

.key-special {
    background-color: #CCCED5;
    flex-grow: 0;
    width: 42px;
}

.key-special:active {
    background-color: #bbbec5;
}

.key-special img {
    width: 18px;
    height: 18px;
}

.key-gray {
    background-color: #CCCED5;
    flex: 0 0 auto;
}

.key-123 {
    width: 40px;
}

.key-text {
    font-size: 15px;
    font-weight: 500;
    color: #3D3D3F;
}

.key-globe {
    background-color: #FFFFFF;
    width: 30px;
    flex: 0 0 auto;
}

.key-globe img {
    width: 20px;
    height: 20px;
}

.key-space {
    flex: 1;
    background-color: #FFFFFF;
    align-items: center;
}

.key-space .key-text {
    font-size: 13px;
    color: #000000;
}

/* --- Daily Report Panel Styles --- */
.daily-report-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80%; /* Takes up more height */
    box-sizing: border-box;
    background-color: #FFFFFF; /* Opaque white for better readability */
    border-radius: 24px 24px 0 0;
    box-shadow: 0px -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1500; /* Above guide panel */
    padding: 20px 20px calc(20px + env(safe-area-inset-bottom)) 20px;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 16px;
    visibility: hidden;
}

.daily-report-panel.active {
    transform: translateY(0);
    visibility: visible;
}

.daily-content {
    flex: 1;
    overflow-y: auto;
    padding-right: 4px;
}

.close-daily-btn {
    font-size: 24px;
    color: #999999;
    cursor: pointer;
    line-height: 1;
}

/* Timeline Styles */
.timeline-container {
    position: relative;
    padding-left: 12px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.timeline-item {
    position: relative;
    padding-left: 24px;
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0; /* For animation */
}

.timeline-date {
    font-size: 12px;
    font-weight: 600;
    color: #999;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
}

.timeline-line {
    position: absolute;
    left: 0;
    top: 24px;
    bottom: -24px; /* Connect to next */
    width: 2px;
    background-color: #E5E5E5;
}

.timeline-item:last-child .timeline-line {
    display: none;
}

.timeline-dot {
    position: absolute;
    left: -4px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #007DFF;
    border: 2px solid #FFFFFF;
    box-shadow: 0 0 0 2px rgba(0, 125, 255, 0.2);
}

.news-card {
    display: block;
    text-decoration: none;
    background: #F9F9F9;
    border-radius: 12px;
    padding: 12px;
    transition: background-color 0.2s;
}

.news-card:active {
    background-color: #F0F0F0;
}

.news-title {
    font-size: 14px;
    font-weight: 600;
    color: #1A1A1A;
    line-height: 1.4;
    margin-bottom: 8px;
}

.ai-summary {
    display: flex;
    gap: 6px;
    align-items: flex-start;
    background: rgba(0, 125, 255, 0.05);
    padding: 8px;
    border-radius: 8px;
    margin-bottom: 8px;
}

.ai-icon {
    width: 12px;
    height: 12px;
    background-image: url('assets/deep_think_icon.svg'); /* Reuse icon */
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
    margin-top: 2px;
}

.ai-text {
    font-size: 12px;
    color: #007DFF;
    line-height: 1.4;
}

.news-source {
    font-size: 11px;
    color: #999;
    display: block;
    text-align: right;
}

/* --- v1.2 Layout Refactor (Strict Mode) --- */
.response-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Force left alignment */
    margin-bottom: 24px;
    animation: fadeIn 0.2s ease;
}

/* Override/Refine .ai-message when inside group */
.response-group .ai-message {
    align-self: flex-start;
    width: 100% !important; /* Full width relative to container */
    max-width: none !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    margin-bottom: 8px;
    box-sizing: border-box;
    border-radius: 4px 16px 16px 16px;
}

.suggestion-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100% !important; /* Full width matching AI bubble */
    align-self: flex-start;
    margin-left: 0 !important;
    margin-top: 0;
    max-height: 86px;
    overflow: hidden;
    padding-left: 0;
    box-sizing: border-box;
}

.suggestion-btn {
    height: 34px; /* Fixed height for calculation */
    border-radius: 17px;
    padding: 0 14px;
    background: #f9f9f9;
    border: 1px solid #efefef;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0; /* Prevent shrinking */
}

.suggestion-btn:hover {
    background: #e0e0e0;
    color: #333;
    border-color: #d0d0d0;
}

/* Deprecated v1.1 Inline Box - Keeping for safety or removal if unused */
.inline-suggestion-box {
    display: none; 
}
