/* Dot App - Mobile-first styles */
/* Matches Hub design system */

/* ===== VARIABLES ===== */
:root {
    --red: #ED1C24;
    --red-dark: #c41820;
    --red-glow: rgba(237, 28, 36, 0.15);
    --black: #1a1a1a;
    --grey-900: #2a2a2a;
    --grey-800: #333;
    --grey-600: #666;
    --grey-400: #999;
    --grey-200: #e5e5e5;
    --grey-100: #f5f5f5;
    --grey-50: #fafafa;
    --white: #ffffff;
    --green: #22a822;
    --orange: #f97316;
    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== RESET ===== */
*, *::before, *::after { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

html, body {
    height: 100%;
}

body { 
    font-family: var(--font-body);
    background: var(--grey-200);
    color: var(--grey-800);
    line-height: 1.5;
    min-height: 100vh;
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Center the phone frame on desktop */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===== PHONE FRAME ===== */
.app-frame {
    position: relative;
    width: 100%;
    max-width: 390px;
    height: 100vh;
    height: 100dvh;
    background: var(--grey-100);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    /* Safe area for notched phones */
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}

/* On actual phones, fill the screen and remove shadow */
@media (max-width: 390px) {
    body {
        background: var(--grey-100);
    }
    .app-frame {
        max-width: 100%;
        box-shadow: none;
    }
}

/* ===== SCREEN MANAGEMENT ===== */
.screen {
    display: none;
    height: 100%;
    overflow-y: auto;
    padding: 20px;
    padding-bottom: 40px;
}

.screen.active {
    display: block;
}

/* ===== PIN SCREEN ===== */
#pin-screen.active {
    background: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px 80px 20px;
}

.pin-robot {
    width: 80px;
    height: auto;
    margin-bottom: 16px;
}

.pin-logo {
    font-family: var(--font-display);
    font-size: 64px;
    font-weight: 400;
    color: var(--grey-800);
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.pin-logo span {
    color: var(--red);
}

.pin-subtitle {
    color: var(--grey-400);
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 48px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.pin-display {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.pin-dot {
    width: 14px;
    height: 14px;
    border-radius: var(--radius-full);
    border: 2px solid var(--grey-200);
    background: transparent;
    transition: all 0.2s var(--ease-bounce);
}

.pin-dot.filled {
    background: var(--red);
    border-color: var(--red);
    transform: scale(1.1);
    box-shadow: 0 0 12px var(--red-glow);
}

.pin-pad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    max-width: 280px;
}

.pin-btn {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-full);
    border: none;
    background: var(--grey-50);
    font-family: var(--font-body);
    font-size: 26px;
    font-weight: 500;
    color: var(--grey-800);
    cursor: pointer;
    transition: all 0.15s var(--ease-out);
    -webkit-tap-highlight-color: transparent;
}

.pin-btn:hover {
    background: var(--grey-100);
}

.pin-btn:active {
    background: var(--red);
    color: var(--white);
    transform: scale(0.92);
}

.pin-btn.delete {
    font-size: 14px;
    font-weight: 600;
    background: transparent;
    color: var(--grey-400);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pin-btn.delete:active {
    background: transparent;
    color: var(--grey-800);
}

.pin-error {
    color: var(--red);
    font-size: 14px;
    font-weight: 500;
    margin-top: 24px;
    height: 20px;
}

.pin-ai2-logo {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    height: 20px;
    width: auto;
    opacity: 0.5;
}

/* ===== HOME SCREEN ===== */
#home-screen.active {
    background: var(--grey-100);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.home-hello-img {
    width: 160px;
    height: auto;
    margin-bottom: 24px;
}

.home-logo {
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 400;
    color: var(--grey-800);
    margin-bottom: 4px;
    letter-spacing: 2px;
}

.home-logo span {
    color: var(--red);
}

.home-tagline {
    color: var(--grey-400);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.home-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 320px;
}

.home-btn {
    display: flex;
    align-items: center;
    padding: 20px 18px;
    border-radius: var(--radius-md);
    border: none;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.15s var(--ease-out);
    box-shadow: var(--shadow-sm);
    background: var(--white);
    color: var(--grey-800);
    -webkit-tap-highlight-color: transparent;
}

.home-btn:active {
    transform: scale(0.98);
    background: var(--red);
    color: var(--white);
}

.home-btn:active .btn-icon,
.home-btn:active .btn-chevron {
    stroke: var(--white);
}

.btn-icon {
    width: 22px;
    height: 22px;
    stroke: var(--red);
    margin-right: 14px;
    flex-shrink: 0;
}

.home-btn span {
    flex: 1;
    text-align: left;
}

.btn-chevron {
    width: 18px;
    height: 18px;
    stroke: var(--grey-300);
    flex-shrink: 0;
}

.home-ai2-logo {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    height: 20px;
    width: auto;
    opacity: 0.5;
}

.screen-ai2-logo {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    height: 20px;
    width: auto;
    opacity: 0.5;
}

/* ===== HEADERS & NAVIGATION ===== */
.header {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.back-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--grey-800);
    cursor: pointer;
    padding: 8px;
    margin-left: -8px;
    margin-right: 8px;
    -webkit-tap-highlight-color: transparent;
}

.header-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--grey-800);
}

/* ===== CLIENT PICKER ===== */
.client-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.client-row {
    display: flex;
    align-items: center;
    padding: 16px 18px;
    border-radius: var(--radius-md);
    background: var(--white);
    cursor: pointer;
    transition: all 0.15s var(--ease-out);
    box-shadow: var(--shadow-sm);
    -webkit-tap-highlight-color: transparent;
}

.client-row:active {
    background: var(--red);
}

.client-row:active .client-name,
.client-row:active .client-code,
.client-row:active .client-arrow {
    color: var(--white);
}

.client-logo {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--grey-100);
    margin-right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
    color: var(--grey-600);
    flex-shrink: 0;
    overflow: hidden;
}

.client-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.client-info {
    flex: 1;
}

.client-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--grey-800);
    margin-bottom: 2px;
}

.client-code {
    font-size: 12px;
    color: var(--grey-400);
}

.client-arrow {
    color: var(--red);
    font-size: 18px;
    transition: transform 0.2s var(--ease-out);
}

.client-row:active .client-arrow {
    transform: translateX(4px);
}

.client-row.other-row {
    background: var(--grey-50);
    box-shadow: none;
}

.client-row.other-row .client-info {
    text-align: center;
}

.client-row.other-row .client-name {
    color: var(--grey-600);
}

.client-row.other-row:active {
    background: var(--red);
}

.section-divider {
    font-size: 11px;
    font-weight: 600;
    color: var(--grey-400);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 24px 0 12px 4px;
}

/* ===== JOB LIST ===== */
.job-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.job-item {
    background: var(--white);
    padding: 18px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.15s var(--ease-out);
    box-shadow: var(--shadow-sm);
    -webkit-tap-highlight-color: transparent;
}

.job-item:active {
    background: var(--grey-50);
    transform: scale(0.99);
}

.job-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.job-item-number {
    font-size: 13px;
    font-weight: 600;
    color: var(--red);
}

.job-item-status {
    font-size: 10px;
    font-weight: 600;
    color: var(--grey-600);
    background: var(--grey-100);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.job-item-status.with-client {
    background: #e8f5e9;
    color: var(--green);
}

.job-item-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--grey-800);
    margin-bottom: 4px;
}

.job-item-desc {
    font-size: 14px;
    color: var(--grey-600);
    line-height: 1.4;
}

/* ===== SUMMARY CARD ===== */
.summary-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.summary-number {
    font-size: 13px;
    font-weight: 600;
    color: var(--red);
    margin-bottom: 4px;
}

.summary-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--grey-800);
    padding-bottom: 16px;
    border-bottom: 1px solid var(--grey-200);
    margin-bottom: 16px;
}

.summary-section {
    margin-bottom: 16px;
}

.summary-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--grey-400);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.summary-text {
    font-size: 15px;
    color: var(--grey-800);
    line-height: 1.5;
}

.summary-row {
    display: flex;
    gap: 24px;
}

.summary-row .summary-section {
    flex: 1;
}

.edit-btn {
    width: 100%;
    padding: 16px;
    background: var(--grey-100);
    color: var(--grey-700);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.15s var(--ease-out);
}

.edit-btn:active {
    background: var(--red);
    color: var(--white);
}

/* ===== UPDATE CARD ===== */
.card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.card-header {
    margin-bottom: 24px;
}

.card-number {
    font-size: 13px;
    font-weight: 600;
    color: var(--red);
    margin-bottom: 4px;
}

.card-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--grey-800);
    margin-bottom: 4px;
}

.card-desc {
    font-size: 14px;
    color: var(--grey-600);
    line-height: 1.4;
}

.card-field {
    margin-bottom: 16px;
}

.card-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--grey-400);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.card-input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--grey-200);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--grey-800);
    background: var(--white);
    cursor: pointer;
    transition: all 0.15s var(--ease-out);
}

.card-input:active {
    border-color: var(--red);
}

.card-input.placeholder {
    color: var(--grey-400);
}

.card-row {
    display: flex;
    gap: 12px;
}

.card-row .card-field {
    flex: 1;
}

/* Toggle */
.toggle-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--white);
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--grey-200);
}

.toggle-label {
    font-size: 15px;
    color: var(--grey-800);
}

.toggle {
    width: 48px;
    height: 28px;
    appearance: none;
    background: var(--grey-200);
    border-radius: var(--radius-full);
    position: relative;
    cursor: pointer;
    transition: background 0.2s var(--ease-out);
}

.toggle:checked {
    background: var(--red);
}

.toggle::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    background: var(--white);
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: transform 0.2s var(--ease-out);
    box-shadow: var(--shadow-sm);
}

.toggle:checked::after {
    transform: translateX(20px);
}

/* Save button */
.save-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: var(--radius-full);
    background: var(--red);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.15s var(--ease-out);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    -webkit-tap-highlight-color: transparent;
}

.save-btn:active {
    background: var(--red-dark);
    transform: scale(0.98);
}

/* ===== MODALS ===== */
/* Position absolute to stay inside app-frame */
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: flex-end;
    z-index: 100;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--white);
    width: 100%;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 24px;
    padding-bottom: 40px;
    animation: slideUp 0.25s var(--ease-out);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--grey-800);
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--grey-400);
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.modal-input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--grey-200);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 15px;
    resize: none;
}

.modal-input:focus {
    outline: none;
    border-color: var(--red);
}

.modal-save {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: var(--radius-full);
    background: var(--red);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-save:active {
    background: var(--red-dark);
}

/* Status options */
.status-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.status-option {
    padding: 16px;
    border-radius: var(--radius-sm);
    background: var(--grey-100);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.15s var(--ease-out);
}

.status-option:active,
.status-option.selected {
    background: var(--red);
    color: var(--white);
}

.status-option .check {
    opacity: 0;
}

.status-option.selected .check {
    opacity: 1;
}

/* ===== TO DO SCREEN ===== */
.todo-section {
    margin-bottom: 28px;
}

.todo-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.todo-list .job-item {
    margin: 0;
}

.todo-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--grey-400);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    padding-left: 4px;
}

.todo-item {
    background: var(--white);
    padding: 16px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.15s var(--ease-out);
    box-shadow: var(--shadow-sm);
    -webkit-tap-highlight-color: transparent;
}

.todo-item:active {
    background: var(--grey-50);
    transform: scale(0.99);
}

.todo-job-number {
    font-size: 12px;
    font-weight: 600;
    color: var(--red);
    margin-bottom: 2px;
}

.todo-job-name {
    font-weight: 500;
    font-size: 15px;
    color: var(--grey-800);
}

.todo-empty {
    color: var(--grey-400);
    font-size: 14px;
    padding: 20px;
    text-align: center;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.todo-locked {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.todo-locked-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.todo-locked-text {
    color: var(--grey-400);
    font-size: 14px;
    font-weight: 500;
}

/* Meeting cards */
.meeting-card {
    background: var(--white);
    padding: 16px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    box-shadow: var(--shadow-sm);
}

.meeting-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.meeting-card-time {
    font-size: 13px;
    font-weight: 600;
    color: var(--red);
}

.meeting-card-whose {
    font-size: 10px;
    font-weight: 600;
    color: var(--grey-600);
    background: var(--grey-100);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meeting-card-title {
    font-weight: 600;
    font-size: 15px;
    color: var(--grey-800);
    margin-bottom: 4px;
}

.meeting-card-location {
    font-size: 13px;
    color: var(--grey-500);
}

.meeting-card-attendees {
    display: none;
    font-size: 13px;
    color: var(--grey-600);
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--grey-100);
    line-height: 1.5;
}

.meeting-card-attendees-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--grey-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.meeting-card.expanded .meeting-card-attendees {
    display: block;
}

.todo-subtitle {
    font-size: 13px;
    font-weight: 600;
    color: var(--grey-500);
    padding-left: 4px;
    margin-top: 12px;
    margin-bottom: 8px;
}

/* ===== TRACKER SCREEN ===== */
.tracker-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
}

.tracker-period {
    font-size: 11px;
    font-weight: 600;
    color: var(--grey-400);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}

.tracker-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.tracker-label {
    color: var(--grey-600);
    font-size: 14px;
}

.tracker-value {
    font-weight: 600;
    color: var(--grey-800);
}

.tracker-value.remaining {
    color: var(--grey-600);
}

.tracker-value.over {
    color: var(--red);
}

.tracker-value.remaining.negative {
    color: var(--red);
}

.progress-bar {
    height: 8px;
    background: var(--grey-200);
    border-radius: 4px;
    margin-top: 16px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--red);
    border-radius: 4px;
    transition: width 0.3s var(--ease-out);
}

.progress-fill.over {
    background: var(--orange);
}

.progress-fill.good {
    background: var(--green);
}

.tracker-percent {
    text-align: right;
    font-size: 12px;
    color: var(--grey-400);
    margin-top: 8px;
}

.tracker-rollover {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--grey-200);
    font-size: 13px;
    color: var(--grey-600);
    font-weight: 500;
}

/* Month card swipe */
.month-card-container {
    position: relative;
    overflow: hidden;
}

.month-card-inner {
    transition: transform 0.2s var(--ease-out), opacity 0.15s ease;
}

.month-card-inner.slide-out-left {
    transform: translateX(-20px);
    opacity: 0;
}

.month-card-inner.slide-out-right {
    transform: translateX(20px);
    opacity: 0;
}

.month-card-inner.slide-in-left {
    animation: slideInLeft 0.2s var(--ease-out);
}

.month-card-inner.slide-in-right {
    animation: slideInRight 0.2s var(--ease-out);
}

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

@keyframes slideInRight {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.month-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.month-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--grey-200);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.month-dot.active {
    background: var(--red);
    transform: scale(1.2);
}

.month-dot:hover {
    background: var(--grey-400);
}

.month-dot.active:hover {
    background: var(--red);
}

/* ===== ASK DOT SCREEN ===== */
#ask-screen.active {
    display: flex;
    flex-direction: column;
    padding-bottom: 80px;
}

.ask-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
}

.message {
    max-width: 85%;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.5;
}

.message.user {
    background: var(--red);
    color: var(--white);
    margin-left: auto;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 8px rgba(237, 28, 36, 0.2);
}

.message.dot {
    background: var(--white);
    color: var(--grey-800);
    border-bottom-left-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.message.dot.thinking {
    color: var(--grey-400);
    font-style: italic;
}

.message-jobs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    padding-left: 8px;
}

.job-chip {
    background: var(--grey-100);
    color: var(--grey-700);
    font-size: 13px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    border: 1px solid var(--grey-200);
}

.chat-jobs {
    margin-bottom: 12px;
}

.chat-jobs .job-item {
    margin-bottom: 8px;
}

/* Position absolute to stay inside app-frame */
.ask-input-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 20px;
    background: var(--grey-100);
    border-top: 1px solid var(--grey-200);
}

.ask-input-row {
    display: flex;
    gap: 12px;
}

.ask-input {
    flex: 1;
    padding: 14px 18px;
    border: 1.5px solid var(--grey-200);
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 15px;
    background: var(--white);
}

.ask-input:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 4px var(--red-glow);
}

.ask-send {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: var(--radius-full);
    background: var(--red);
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s var(--ease-out);
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.ask-send:active {
    background: var(--red-dark);
    transform: scale(0.95);
}

/* ===== TOAST ===== */
/* Position absolute to stay inside app-frame */
.toast {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--grey-800);
    color: var(--white);
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 600;
    opacity: 0;
    transition: all 0.3s var(--ease-out);
    pointer-events: none;
    box-shadow: var(--shadow-md);
    z-index: 200;
    white-space: nowrap;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
