@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #007aff;
    --primary-grad: linear-gradient(135deg, #007aff, #0056b3);
    --secondary: #5856d6;
    --secondary-grad: linear-gradient(135deg, #5856d6, #403eb5);
    --bg-grad: linear-gradient(180deg, #f2f6fe 0%, #e8edf9 100%);
    --text-primary: #1c1c1e;
    --text-secondary: #3a3a3c;
    --text-muted: #8e8e93;
    --card-bg: rgba(255, 255, 255, 0.7);
    --card-border: 1px solid rgba(255, 255, 255, 0.4);
    --blur: blur(20px);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg-grad);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* Centered Viewport Wrapper */
.app-container {
    width: 100%;
    max-width: 480px;
    background: transparent;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.03);
    padding-bottom: 90px; /* Space for fixed bottom bar */
}

/* Glassmorphism Header */
header.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border-bottom: var(--card-border);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header.app-header h1 {
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.header-status {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(0, 122, 255, 0.1);
    color: var(--primary);
}

.header-status.logged-in {
    background: rgba(52, 199, 89, 0.1);
    color: #34c759;
}

/* Main Content Area */
main.app-content {
    flex: 1;
    padding: 20px;
    width: 100%;
}

/* Typography */
h2 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.8px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

p.subtitle {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* Glassmorphism Card System */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: var(--card-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Custom iOS Form Controls */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    padding-left: 4px;
}

.form-control {
    width: 100%;
    font-family: inherit;
    font-size: 15px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-primary);
    outline: none;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.12);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 40px;
}

/* iOS Primary & Secondary Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-grad);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.25);
}

.btn-primary:active {
    transform: scale(0.98);
    background: #0056b3;
}

.btn-secondary {
    background: rgba(0, 122, 255, 0.08);
    color: var(--primary);
}

.btn-secondary:active {
    transform: scale(0.98);
    background: rgba(0, 122, 255, 0.15);
}

.btn-danger {
    background: linear-gradient(135deg, #ff3b30, #d32f2f);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.2);
}

.btn-danger:active {
    transform: scale(0.98);
    background: #d32f2f;
}

/* Property Grid Layout */
.property-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Property card layout */
.property-card {
    background: var(--card-bg);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: var(--card-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.property-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    background: #e5e5ea;
}

.property-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    text-transform: uppercase;
}

.badge-house { background: rgba(0, 122, 255, 0.85); }
.badge-flat { background: rgba(88, 86, 214, 0.85); }
.badge-stand { background: rgba(52, 199, 89, 0.85); }
.badge-commercial { background: rgba(255, 149, 0, 0.85); }

.property-price {
    position: absolute;
    bottom: 14px;
    right: 14px;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    background: rgba(0, 122, 255, 0.9);
}

.property-info {
    padding: 16px;
}

.property-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.property-location {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 12px;
}

.property-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 12px;
}

.property-meta span {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Slider Style for property.php */
.slider-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 280px;
    margin-bottom: 20px;
    background: #000;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
}

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

.slide.active {
    display: block;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.slider-btn-prev { left: 16px; }
.slider-btn-next { right: 16px; }

.slider-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.dot.active {
    background: #ffffff;
    width: 18px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

/* iOS bottom tab bar navigation */
footer.app-footer {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border-top: var(--card-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 76px;
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 100;
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 500;
    flex: 1;
    height: 100%;
    transition: color 0.2s ease;
}

.tab-item i {
    font-size: 20px;
    margin-bottom: 4px;
}

.tab-item.active {
    color: var(--primary);
}

.tab-item-center {
    position: relative;
    top: -12px;
}

.tab-item-center .center-btn {
    background: var(--primary-grad);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 122, 255, 0.4);
    color: #ffffff;
    font-size: 24px;
    border: 3px solid #ffffff;
    transition: transform 0.2s ease;
}

.tab-item-center:active .center-btn {
    transform: scale(0.9);
}

/* Flash alerts styling */
.alert {
    position: relative;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideUp 0.3s ease;
}

.alert-success {
    background: rgba(52, 199, 89, 0.12);
    color: #248a3d;
    border: 1px solid rgba(52, 199, 89, 0.2);
}

.alert-error {
    background: rgba(255, 59, 48, 0.12);
    color: #d32f2f;
    border: 1px solid rgba(255, 59, 48, 0.2);
}

/* Search bar styling */
.search-card {
    margin-bottom: 20px;
}

.search-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
}

/* iOS bottom sheet modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #ffffff;
    width: 100%;
    max-width: 480px;
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
    padding: 24px;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.1);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

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

.modal-header h3 {
    font-size: 20px;
    font-weight: 700;
}

.modal-close {
    border: none;
    background: rgba(0, 0, 0, 0.05);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-secondary);
}

/* Image Upload Previews styling */
.image-upload-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.image-upload-box {
    aspect-ratio: 1;
    border: 2px dashed rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.2s ease;
}

.image-upload-box:hover {
    border-color: var(--primary);
    background: rgba(0, 122, 255, 0.02);
}

.image-upload-box i {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.image-upload-box span {
    font-size: 9px;
    color: var(--text-muted);
}

.image-upload-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* Inquiry lists on my-listings.php */
.inquiry-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 16px 0;
}

.inquiry-item:last-child {
    border-bottom: none;
}

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

.inquiry-sender {
    font-weight: 600;
    font-size: 14px;
}

.inquiry-date {
    font-size: 12px;
    color: var(--text-muted);
}

.inquiry-message {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 8px;
}

.inquiry-status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-pending { background: rgba(255, 149, 0, 0.1); color: #ff9500; }
.badge-replied { background: rgba(0, 122, 255, 0.1); color: #007aff; }
.badge-completed { background: rgba(52, 199, 89, 0.1); color: #34c759; }

/* Empty state styling */
.empty-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-state i {
    font-size: 48px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.empty-state h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    color: var(--text-muted);
}

/* CSS Keyframes */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-up {
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- EXTENSION STYLES --- */

/* Listing rent/sale badges */
.badge-rent { background: rgba(0, 122, 255, 0.9); }
.badge-sale { background: rgba(52, 199, 89, 0.9); }

/* Rating stars */
.stars-container {
    display: inline-flex;
    gap: 4px;
    color: #ffcc00;
    font-size: 14px;
}
.stars-container.large {
    font-size: 24px;
}
.star-btn {
    border: none;
    background: none;
    font-size: 28px;
    color: #e5e5ea;
    cursor: pointer;
    transition: color 0.15s ease;
}
.star-btn.active, .star-btn:hover, .star-btn:hover ~ .star-btn {
    color: #ffcc00;
}

/* Avatar pictures */
.avatar-circle {
    border-radius: 50%;
    object-fit: cover;
    background: #e5e5ea;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    /* Ensure img tags always fill circle properly */
    display: block;
    flex-shrink: 0;
    overflow: hidden;
}
/* When avatar-circle is a div (icon fallback), ensure it's always a circle */
div.avatar-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.avatar-sm { width: 36px; height: 36px; min-width: 36px; }
.avatar-md { width: 48px; height: 48px; min-width: 48px; }
.avatar-lg { width: 80px; height: 80px; min-width: 80px; }
/* Ensure img inside a div avatar-circle also fills */
.avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

/* Leaderboard custom lists */
.provider-list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.provider-list-item:last-child {
    border-bottom: none;
}

/* Tab Bar badge notifications */
.tab-item {
    position: relative;
}
.tab-badge {
    position: absolute;
    top: 4px;
    right: calc(50% - 18px);
    background: #ff3b30;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(255, 59, 48, 0.3);
}

/* Chat inbox & bubbles */
.chat-list {
    display: flex;
    flex-direction: column;
}
.chat-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s ease;
    border-radius: var(--radius-md);
}
.chat-item:hover {
    background-color: rgba(0, 122, 255, 0.04);
}
.chat-item.unread {
    background-color: rgba(0, 122, 255, 0.08);
}
.chat-meta {
    flex: 1;
    min-width: 0;
}
.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4px;
}
.chat-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-primary);
}
.chat-date {
    font-size: 12px;
    color: var(--text-muted);
}
.chat-preview {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.chat-preview.unread {
    font-weight: 600;
    color: var(--text-primary);
}

/* Chat window */
.chat-log {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 10px 0;
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
}
.message-bubble {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    line-height: 1.4;
    position: relative;
    word-wrap: break-word;
}
.message-bubble.incoming {
    align-self: flex-start;
    background: rgba(0, 0, 0, 0.07);
    color: var(--text-primary);
    border-radius: var(--radius-md) var(--radius-md) var(--radius-md) 4px;
}
.message-bubble.outgoing {
    align-self: flex-end;
    background: var(--primary-grad);
    color: #ffffff;
    border-radius: var(--radius-md) var(--radius-md) 4px var(--radius-md);
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.25);
}
.message-time {
    display: block;
    font-size: 10px;
    margin-top: 6px;
    opacity: 0.7;
    text-align: right;
}

/* Chat compose bar */
.chat-input-bar {
    display: flex;
    gap: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 16px;
    align-items: center;
}

/* ═══════════════════════════════════════
   RESPONSIVE DESIGN — All Phone Sizes
═══════════════════════════════════════ */

/* Very small phones (320px and below – e.g. older iPhones) */
@media (max-width: 360px) {
    .app-container { max-width: 100%; }
    main.app-content { padding: 14px 12px; }
    h2 { font-size: 22px; }
    p.subtitle { font-size: 13px; margin-bottom: 16px; }
    .glass-card { padding: 14px; border-radius: 18px; }
    header.app-header { padding: 12px 14px; }
    header.app-header h1 { font-size: 17px; }
    .form-control { font-size: 14px; padding: 12px 14px; }
    .btn { font-size: 15px; padding: 13px 16px; }
    .property-image-wrapper { height: 170px; }
    .property-title { font-size: 15px; }
    .chat-item { padding: 12px 10px; gap: 10px; }
    .chat-name { font-size: 13px; }
    .message-bubble { max-width: 88%; font-size: 13px; padding: 10px 13px; }
    .provider-list-item { gap: 10px; }
    footer.app-footer { height: 68px; }
    .tab-item i { font-size: 18px; }
    .tab-item span { font-size: 9px; }
    .tab-item-center .center-btn { width: 48px; height: 48px; font-size: 22px; }
}

/* Small to medium phones (361px – 414px) */
@media (min-width: 361px) and (max-width: 414px) {
    .app-container { max-width: 100%; }
    main.app-content { padding: 16px 16px; }
    h2 { font-size: 24px; }
    .glass-card { padding: 16px; }
    .property-image-wrapper { height: 190px; }
    .message-bubble { max-width: 82%; }
}

/* Standard phones (415px – 480px – e.g. iPhone 14 Pro Max, Galaxy S23) */
@media (min-width: 415px) and (max-width: 480px) {
    .app-container { max-width: 100%; }
    main.app-content { padding: 18px 18px; }
}

/* Medium tablets and large phones (481px+) */
@media (min-width: 481px) {
    .app-container { max-width: 480px; }
}

/* Landscape orientation on phones — compress vertical spacing */
@media (max-height: 600px) and (orientation: landscape) {
    header.app-header { padding: 8px 20px; }
    main.app-content { padding: 12px 20px; }
    h2 { font-size: 20px; margin-bottom: 4px; }
    p.subtitle { margin-bottom: 12px; font-size: 13px; }
    .glass-card { margin-bottom: 12px; }
    .chat-view-wrapper { height: calc(100dvh - 120px); min-height: 200px; }
    footer.app-footer { height: 60px; }
    .tab-item-center { top: -8px; }
    .tab-item-center .center-btn { width: 46px; height: 46px; font-size: 20px; }
}

/* Ensure no horizontal overflow on any screen — EXCEPT bubbles keep their max-width */
*:not(.message-bubble) { max-width: 100%; }
img, video, iframe { max-width: 100%; height: auto; }

/* Prevent text from overflowing in header */
header.app-header {
    overflow: hidden;
}
header.app-header h1 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex-shrink: 1;
}

/* Property cards full-width on mobile */
@media (max-width: 480px) {
    .property-card { border-radius: 18px; }
    .slider-container { height: 230px; border-radius: 18px; }
    .search-grid { grid-template-columns: 1fr; }
    .modal-content { border-radius: 24px 24px 0 0; padding: 20px; }
    /* Image upload grid — fewer columns on tiny screens */
    .image-upload-grid { grid-template-columns: repeat(4, 1fr); }
    /* Chat log height uses dvh for keyboard-aware resizing */
    .chat-log { max-height: 45dvh; }
    /* crop modal */
    #crop-canvas-wrap { aspect-ratio: 1; border-radius: 10px; }
    .crop-modal-box { padding: 18px; gap: 12px; }
}

