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

/* ============================================================================
   theme-softmono.css  —  "G · Soft Mono" preview theme
   Opt-in only: applies when <body> has class "theme-softmono"
   (enabled with ?theme=soft on the client portal and the admin home).
   Colours only — layout is left exactly as the default theme.
   ============================================================================ */

body.theme-softmono {
    --sm-ground: #F1F1F3;
    --sm-surface: #FFFFFF;
    --sm-ink: #0B0B0C;
    --sm-ink-2: #1E1E21;
    --sm-ink-3: #2A2A2E;
    --sm-muted: #5F5F68;
    --sm-line: #E4E4E8;
    --sm-soft: #E9E9EC;
    --sm-on-ink-muted: #C9C9CF;
    --sm-danger: #D93D42;
    --sm-grad: linear-gradient(90deg, #FFB36B, #F58BC6, #7CB8FF);
    background: var(--sm-ground) !important;
    color: var(--sm-ink);
    font-family: 'Outfit', 'Segoe UI', system-ui, sans-serif !important;
}

body.theme-softmono button,
body.theme-softmono input,
body.theme-softmono select,
body.theme-softmono textarea {
    font-family: inherit;
}

/* ---------- Header ---------- */
body.theme-softmono .header {
    background: var(--sm-ink) !important;
    box-shadow: none !important;
    border-bottom: 3px solid transparent;
    border-image: var(--sm-grad) 1;
}
body.theme-softmono .header .breadcrumb,
body.theme-softmono .header .client-info p {
    color: var(--sm-on-ink-muted) !important;
    opacity: 1;
    font-weight: 300;
}
body.theme-softmono .header h1 {
    letter-spacing: -0.01em;
}
body.theme-softmono .storage-info {
    background: var(--sm-ink-2) !important;
    border: 0 !important;
}
body.theme-softmono .chat-toggle,
body.theme-softmono .menu-toggle,
body.theme-softmono .admin-home-toggle {
    background: var(--sm-ink-3) !important;
    border: 0 !important;
    color: #FFFFFF !important;
}
body.theme-softmono .chat-toggle:hover,
body.theme-softmono .menu-toggle:hover,
body.theme-softmono .admin-home-toggle:hover {
    background: #3A3A40 !important;
}
body.theme-softmono .chat-notification {
    background: #FFFFFF !important;
    color: var(--sm-ink) !important;
    border-color: var(--sm-ink) !important;
}

/* ---------- Sections ---------- */
body.theme-softmono .file-section {
    background: var(--sm-surface) !important;
    border: 0 !important;
    border-radius: 10px !important;
    box-shadow: none !important;
}
body.theme-softmono .section-title-row,
body.theme-softmono .section-controls {
    border-bottom-color: var(--sm-line) !important;
}
body.theme-softmono .section-title,
body.theme-softmono .section-title i,
body.theme-softmono .section-title span {
    color: var(--sm-ink) !important;
}
body.theme-softmono h2.section-title {
    font-size: 18px;
    font-weight: 600;
}
body.theme-softmono .file-count {
    background: var(--sm-ground) !important;
    border: 0 !important;
    color: var(--sm-muted) !important;
}
body.theme-softmono .file-list {
    background: var(--sm-surface) !important;
}
body.theme-softmono .file-section-header {
    background: #F7F7F8 !important;
    color: var(--sm-muted) !important;
    border-color: var(--sm-line) !important;
}
body.theme-softmono .file-section-header .section-title,
body.theme-softmono .file-section-header i {
    color: var(--sm-muted) !important;
}

/* ---------- Rows: folders and files ---------- */
body.theme-softmono .file-item,
body.theme-softmono .folder-item {
    background: var(--sm-surface) !important;
    background-image: none !important;
    border-bottom: 1px solid #EDEDF0 !important;
    border-left: 3px solid transparent !important;
    border-radius: 0 !important;
}
body.theme-softmono .file-item:hover,
body.theme-softmono .folder-item:hover {
    background: #F7F7F8 !important;
    box-shadow: none !important;
}
/* Age coding kept as a slim edge instead of a tinted row */
body.theme-softmono .file-item.age-today,
body.theme-softmono .folder-item.age-today { border-left-color: #3DC59A !important; }
body.theme-softmono .file-item.age-week,
body.theme-softmono .folder-item.age-week { border-left-color: #7CB8FF !important; }
body.theme-softmono .file-item.age-month,
body.theme-softmono .folder-item.age-month { border-left-color: #FFB36B !important; }
body.theme-softmono .file-item.age-old,
body.theme-softmono .folder-item.age-old { border-left-color: #D5D5DA !important; }

body.theme-softmono .folder-icon {
    background: var(--sm-ground) !important;
    color: var(--sm-ink) !important;
}
body.theme-softmono .folder-icon i {
    color: var(--sm-ink) !important;
}
body.theme-softmono .folder-name,
body.theme-softmono .folder-name span,
body.theme-softmono .file-name,
body.theme-softmono .file-name span {
    color: var(--sm-ink) !important;
    font-weight: 500;
}
body.theme-softmono .file-meta,
body.theme-softmono .folder-meta,
body.theme-softmono .file-meta span,
body.theme-softmono .folder-meta span {
    color: var(--sm-muted) !important;
    font-weight: 300;
}
body.theme-softmono .folder-toggle,
body.theme-softmono .folder-toggle i {
    color: #8A8A93 !important;
}
body.theme-softmono .file-thumbnail {
    background: var(--sm-ground) !important;
    border: 0 !important;
}
body.theme-softmono .file-actions,
body.theme-softmono .folder-actions {
    background: var(--sm-ink) !important;
}

/* File-type icon tints */
body.theme-softmono .file-thumbnail i.fa-file-pdf { color: #E5484D !important; }
body.theme-softmono .file-thumbnail i.fa-file-word,
body.theme-softmono .file-thumbnail i.fa-file-alt { color: #3E9BEA !important; }
body.theme-softmono .file-thumbnail i.fa-file-excel { color: #3DC59A !important; }
body.theme-softmono .file-thumbnail i.fa-file-video,
body.theme-softmono .file-thumbnail i.fa-video { color: #7B63D9 !important; }
body.theme-softmono .file-thumbnail i.fa-file-image,
body.theme-softmono .file-thumbnail i.fa-image { color: #35B8C9 !important; }
body.theme-softmono .file-thumbnail i.fa-file-archive { color: #EE7A5C !important; }
body.theme-softmono .file-thumbnail i.fa-file-audio,
body.theme-softmono .file-thumbnail i.fa-music { color: #F58BC6 !important; }

/* ---------- Buttons ---------- */
body.theme-softmono .btn {
    border-radius: 22px !important;
    box-shadow: none !important;
    font-weight: 500;
}
body.theme-softmono .btn-success,
body.theme-softmono .btn-primary {
    background: var(--sm-ink) !important;
    border-color: var(--sm-ink) !important;
    color: #FFFFFF !important;
}
body.theme-softmono .btn-success:hover,
body.theme-softmono .btn-primary:hover {
    background: #2A2A2E !important;
}
body.theme-softmono .btn-success i,
body.theme-softmono .btn-primary i {
    color: #FFFFFF !important;
}
body.theme-softmono .btn-secondary,
body.theme-softmono .btn-info,
body.theme-softmono .btn.btn-sm:not(.btn-success):not(.btn-primary):not(.btn-danger) {
    background: var(--sm-soft) !important;
    border-color: transparent !important;
    color: var(--sm-ink) !important;
}
body.theme-softmono .btn-secondary:hover,
body.theme-softmono .btn-info:hover {
    background: #DCDCE0 !important;
}
body.theme-softmono .btn-secondary i,
body.theme-softmono .btn-info i {
    color: var(--sm-ink) !important;
}
body.theme-softmono .btn-danger {
    background: var(--sm-danger) !important;
    border-color: var(--sm-danger) !important;
    color: #FFFFFF !important;
}
body.theme-softmono .file-actions .btn-success,
body.theme-softmono .folder-actions .btn-success,
body.theme-softmono .file-actions .btn-primary,
body.theme-softmono .folder-actions .btn-primary {
    background: #FFFFFF !important;
    border-color: #FFFFFF !important;
    color: var(--sm-ink) !important;
}
body.theme-softmono .file-actions .btn-success i,
body.theme-softmono .folder-actions .btn-success i,
body.theme-softmono .file-actions .btn-primary i,
body.theme-softmono .folder-actions .btn-primary i {
    color: var(--sm-ink) !important;
}

/* ---------- Upload area ---------- */
body.theme-softmono .upload-area {
    border: 2px dashed #B9B9C0 !important;
    border-radius: 10px !important;
    background: #F7F7F8 !important;
}
body.theme-softmono .upload-area:hover,
body.theme-softmono .upload-area.drag-over {
    border-color: var(--sm-ink) !important;
    background: var(--sm-ground) !important;
}
body.theme-softmono .upload-area > i {
    color: var(--sm-ink) !important;
}
body.theme-softmono .upload-area small {
    color: var(--sm-muted) !important;
}

/* ---------- Payment request card ---------- */
body.theme-softmono .payment-request-row {
    background: var(--sm-ink) !important;
    background-image: none !important;
    border-radius: 10px !important;
    box-shadow: none !important;
}
body.theme-softmono .payment-icon {
    background: var(--sm-ink-3) !important;
}
body.theme-softmono .payment-request-row .btn-success {
    background: #FFFFFF !important;
    border-color: #FFFFFF !important;
    color: var(--sm-ink) !important;
}
body.theme-softmono .payment-request-row .btn-success i {
    color: var(--sm-ink) !important;
}
body.theme-softmono .folder-item.locked-folder {
    border-left-color: transparent !important;
}

/* ---------- Side menu, chat, modals ---------- */
body.theme-softmono .side-menu {
    background: var(--sm-ground) !important;
}
body.theme-softmono .menu-header,
body.theme-softmono .chat-header {
    background: var(--sm-ink) !important;
    background-image: none !important;
    color: #FFFFFF !important;
    border-bottom: 0 !important;
}
body.theme-softmono .menu-header h2,
body.theme-softmono .menu-header i,
body.theme-softmono .chat-header h3,
body.theme-softmono .chat-header i,
body.theme-softmono .menu-close,
body.theme-softmono .menu-theme-toggle,
body.theme-softmono .menu-layout-toggle {
    color: #FFFFFF !important;
}
body.theme-softmono .menu-group-title {
    color: var(--sm-muted) !important;
}
body.theme-softmono .menu-btn {
    background: var(--sm-surface) !important;
    border-color: transparent !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}
body.theme-softmono .menu-btn:hover {
    background: #F7F7F8 !important;
}
body.theme-softmono .btn-icon {
    background: var(--sm-ground) !important;
    color: var(--sm-ink) !important;
}
body.theme-softmono .btn-title {
    color: var(--sm-ink) !important;
}
body.theme-softmono .btn-desc {
    color: var(--sm-muted) !important;
}
body.theme-softmono .accordion-header i {
    color: var(--sm-ink) !important;
}
body.theme-softmono .modal-content {
    border: 0 !important;
    border-radius: 12px !important;
}

/* ---------- Mobile bottom navigation ---------- */
body.theme-softmono .mobile-bottom-nav {
    background: var(--sm-ink) !important;
    border-top: 2px solid transparent !important;
    border-image: var(--sm-grad) 1 !important;
    box-shadow: none !important;
}
body.theme-softmono .mobile-bottom-nav .nav-btn,
body.theme-softmono .mobile-bottom-nav .nav-btn i,
body.theme-softmono .mobile-bottom-nav .nav-btn span {
    color: var(--sm-on-ink-muted) !important;
    background: transparent !important;
}
body.theme-softmono .mobile-bottom-nav .nav-btn.active,
body.theme-softmono .mobile-bottom-nav .nav-btn.active i,
body.theme-softmono .mobile-bottom-nav .nav-btn.active span,
body.theme-softmono .mobile-bottom-nav .nav-btn:hover,
body.theme-softmono .mobile-bottom-nav .nav-btn:hover i,
body.theme-softmono .mobile-bottom-nav .nav-btn:hover span {
    color: #FFFFFF !important;
}
body.theme-softmono .mobile-bottom-nav .nav-upload-btn {
    background: var(--sm-ink) !important;
    color: #FFFFFF !important;
    border: 2px solid #F58BC6 !important;
    box-shadow: none !important;
}

/* ============================================================================
   Admin home (body.sm-admin) — enabled with /crm/admin/?theme=soft
   ============================================================================ */
body.sm-admin {
    --sm-ground: #F1F1F3;
    --sm-ink: #0B0B0C;
    --sm-ink-2: #1E1E21;
    --sm-ink-3: #2A2A2E;
    --sm-muted: #5F5F68;
    --sm-soft: #E9E9EC;
    --sm-grad: linear-gradient(90deg, #FFB36B, #F58BC6, #7CB8FF);
    background: var(--sm-ground) !important;
    color: var(--sm-ink) !important;
    font-family: 'Outfit', 'Segoe UI', system-ui, sans-serif !important;
}
body.sm-admin button,
body.sm-admin input,
body.sm-admin select,
body.sm-admin textarea { font-family: inherit; }

body.sm-admin .header {
    background: var(--sm-ink) !important;
    box-shadow: none !important;
    border-bottom: 3px solid transparent;
    border-image: var(--sm-grad) 1;
}
body.sm-admin .btn { border-radius: 22px !important; }
body.sm-admin .header .btn-primary,
body.sm-admin .header .btn-secondary {
    background: var(--sm-ink-3) !important;
    border: 0 !important;
    color: #FFFFFF !important;
}
body.sm-admin .header .btn-primary:hover,
body.sm-admin .header .btn-secondary:hover { background: #3A3A40 !important; }

/* Summary tiles become the black panel */
body.sm-admin .stat-card {
    background: var(--sm-ink) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}
body.sm-admin .stat-card:nth-child(2) { background: var(--sm-ink-2) !important; }
body.sm-admin .stat-icon { background: var(--sm-ink-3) !important; color: #FFFFFF !important; }
body.sm-admin .stat-content h3 { color: #FFFFFF !important; font-weight: 600; }
body.sm-admin .stat-content p { color: #C9C9CF !important; font-weight: 300; }

body.sm-admin .section-title,
body.sm-admin .section-title i { color: var(--sm-ink) !important; }
body.sm-admin .btn-success {
    background: var(--sm-ink) !important;
    color: #FFFFFF !important;
}
body.sm-admin .btn-success:hover { background: var(--sm-ink-3) !important; }

body.sm-admin .search-container { background: transparent !important; }
body.sm-admin .search-bar {
    background: #DCDCE0 !important;
    border: 2px solid transparent !important;
    border-radius: 26px !important;
    box-shadow: none !important;
    color: var(--sm-ink) !important;
}
body.sm-admin .search-bar:focus { border-color: var(--sm-ink) !important; }
body.sm-admin .search-icon { color: var(--sm-muted) !important; }

/* Client cards */
body.sm-admin .client-card {
    background: #FFFFFF !important;
    border-radius: 10px !important;
    box-shadow: none !important;
}
body.sm-admin .client-card:hover { box-shadow: 0 6px 18px rgba(11, 11, 12, 0.08) !important; }
body.sm-admin .client-info h3 { color: var(--sm-ink) !important; font-weight: 500; }
body.sm-admin .client-info h3::before {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f07b";
    margin-right: 10px;
    color: var(--sm-ink);
}
body.sm-admin .client-info p { color: var(--sm-muted) !important; font-weight: 300; }
body.sm-admin .client-stats { background: var(--sm-ground) !important; }
body.sm-admin .client-stat .value { color: var(--sm-ink) !important; }
body.sm-admin .client-stat .label { color: var(--sm-muted) !important; }
body.sm-admin .progress-bar { background: #E4E4E8 !important; }
body.sm-admin .progress-fill { background: var(--sm-grad) !important; }
body.sm-admin .client-link { background: var(--sm-ground) !important; color: var(--sm-muted) !important; }
body.sm-admin .copy-btn { color: var(--sm-ink) !important; }

body.sm-admin .client-card .btn-sm,
body.sm-admin .client-card .btn-info {
    background: var(--sm-soft) !important;
    color: var(--sm-ink) !important;
    border: 0 !important;
    border-radius: 22px !important;
}
body.sm-admin .client-card .btn-sm:hover { background: #DCDCE0 !important; }
body.sm-admin .client-card .btn-success.btn-sm {
    background: var(--sm-ink) !important;
    color: #FFFFFF !important;
}
body.sm-admin .client-card .btn-danger.btn-sm {
    background: #FCE7E8 !important;
    color: #C5363B !important;
}
body.sm-admin .form-group input:focus,
body.sm-admin .form-group select:focus { border-color: var(--sm-ink) !important; }
body.sm-admin .summary-item .count { color: var(--sm-ink) !important; }

/* ============================================================================
   Client portal — tidy-up pass (fewer lines, lighter group labels, calmer rows)
   ============================================================================ */

/* Section heads: no rules under the title or the button row */
body.theme-softmono .section-title-row,
body.theme-softmono .section-controls {
    border-bottom: 0 !important;
}
body.theme-softmono .section-title-row { padding-bottom: 12px !important; }

/* Buttons wrap instead of running off the edge */
body.theme-softmono .upload-buttons { flex-wrap: wrap !important; }
body.theme-softmono .upload-buttons .btn { padding: 9px 16px !important; font-size: 14px !important; }

/* Group labels ("This month", "A while ago"): quiet text, no grey band */
body.theme-softmono .file-section-header {
    background: transparent !important;
    border: 0 !important;
    padding: 20px 20px 6px !important;
    font-size: 12px !important;
}
body.theme-softmono .file-section-header .section-title,
body.theme-softmono .file-section-header i {
    font-size: 12px !important;
    font-weight: 500 !important;
    letter-spacing: 0.08em !important;
    color: var(--sm-muted) !important;
}
body.theme-softmono .file-section-header .file-count {
    background: transparent !important;
    font-size: 12px !important;
    padding: 0 !important;
}

/* Rows: no coloured age edge, hairline dividers only */
body.theme-softmono .file-item,
body.theme-softmono .folder-item,
body.theme-softmono .file-item.age-today,
body.theme-softmono .folder-item.age-today,
body.theme-softmono .file-item.age-week,
body.theme-softmono .folder-item.age-week,
body.theme-softmono .file-item.age-month,
body.theme-softmono .folder-item.age-month,
body.theme-softmono .file-item.age-old,
body.theme-softmono .folder-item.age-old {
    border-left: 0 !important;
    border-bottom: 1px solid #F1F1F3 !important;
}
body.theme-softmono .file-thumbnail {
    border-radius: 8px !important;
    margin-bottom: 0 !important;
}
body.theme-softmono .file-meta { margin-bottom: 0 !important; }
body.theme-softmono .folder-icon { border-radius: 8px !important; }

/* Hover actions: light strip with round buttons instead of a black block */
body.theme-softmono .file-actions,
body.theme-softmono .folder-actions {
    background: var(--sm-surface) !important;
    box-shadow: -16px 0 16px 0 var(--sm-surface) !important;
}
body.theme-softmono .file-item:hover .file-actions,
body.theme-softmono .folder-item:hover .folder-actions {
    background: #F7F7F8 !important;
    box-shadow: -16px 0 16px 0 #F7F7F8 !important;
}
body.theme-softmono .file-actions .btn,
body.theme-softmono .folder-actions .btn {
    background: var(--sm-soft) !important;
    border-color: transparent !important;
    color: var(--sm-ink) !important;
}
body.theme-softmono .file-actions .btn i,
body.theme-softmono .folder-actions .btn i { color: var(--sm-ink) !important; }
body.theme-softmono .file-actions .btn-success,
body.theme-softmono .folder-actions .btn-success {
    background: var(--sm-ink) !important;
    color: #FFFFFF !important;
}
body.theme-softmono .file-actions .btn-success i,
body.theme-softmono .folder-actions .btn-success i { color: #FFFFFF !important; }

/* Upload box: smaller and calmer */
body.theme-softmono .upload-area {
    padding: 26px 20px !important;
    margin: 4px 20px 12px !important;
    border-width: 1.5px !important;
}
body.theme-softmono .upload-area > i {
    font-size: 30px !important;
    margin-bottom: 8px !important;
}
body.theme-softmono .upload-area p { font-weight: 500; margin-bottom: 2px; }

/* Payment request: gradient edge on the left of the row */
body.theme-softmono .folder-item.locked-folder {
    border-bottom: 0 !important;
    margin: 4px 16px 8px !important;
    background: transparent !important;
}
body.theme-softmono .payment-request-row {
    background:
        linear-gradient(180deg, #FFB36B, #F58BC6, #7CB8FF) left top / 8px 100% no-repeat,
        var(--sm-ink) !important;
    border: 0 !important;
    padding: 16px 18px 16px 26px !important;
    width: 100%;
    box-sizing: border-box;
}
body.theme-softmono .payment-amount { font-weight: 600; }
body.theme-softmono .payment-description,
body.theme-softmono .payment-date,
body.theme-softmono .payment-date i {
    color: var(--sm-on-ink-muted) !important;
    font-weight: 300;
}

/* Font Awesome solid icons need weight 900 — keep text-weight rules off them */
body.theme-softmono .file-section-header i.fas,
body.theme-softmono .payment-date i.fas,
body.theme-softmono .file-meta i.fas,
body.theme-softmono .folder-meta i.fas {
    font-weight: 900 !important;
}

/* Payment request: gradient on the left that fades into the black card */
body.theme-softmono .payment-request-row {
    background:
        linear-gradient(90deg, rgba(11, 11, 12, 0) 0%, rgba(11, 11, 12, 0.55) 12%, #0B0B0C 38%),
        linear-gradient(180deg, #FFB36B, #F58BC6, #7CB8FF),
        var(--sm-ink) !important;
    padding-left: 18px !important;
}
body.theme-softmono .payment-request-row .payment-icon {
    background: rgba(11, 11, 12, 0.55) !important;
}

/* Upload "Settings" becomes a gear in the section title row */
body.theme-softmono .file-section { position: relative !important; }
body.theme-softmono .file-section:has(.upload-settings) .section-title-row { padding-right: 68px !important; }
body.theme-softmono .section-controls,
body.theme-softmono .upload-buttons { position: static !important; }
body.theme-softmono .upload-settings {
    position: absolute !important;
    top: 13px;
    right: 16px;
    display: block !important;
    z-index: 2;
}
body.theme-softmono .upload-settings > .btn {
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    justify-content: center !important;
    font-size: 15px !important;
}
body.theme-softmono .upload-settings > .btn .settings-text { display: none !important; }
body.theme-softmono .upload-settings > .btn i::before { content: "\f013"; }
body.theme-softmono .upload-settings-row {
    margin: 0 20px 14px !important;
    padding: 14px 16px !important;
    background: var(--sm-ground) !important;
    border: 0 !important;
    border-radius: 10px !important;
    font-size: 14px;
}

/* Header: solid black (colour fade removed) */
body.theme-softmono .header .breadcrumb,
body.theme-softmono .header .client-info p {
    color: #E4E4E8 !important;
}

/* Header: no "Client Portal" breadcrumb line */
body.theme-softmono .header .breadcrumb { display: none !important; }

/* Payment row: on narrow screens the buttons drop below the details instead of squeezing them */
body.theme-softmono .payment-request-row { flex-wrap: wrap !important; row-gap: 12px !important; }
body.theme-softmono .payment-request-row .payment-details { flex: 1 1 150px !important; min-width: 150px !important; }

/* Mobile bottom nav: floating black pill (same icons and buttons as before) */
body.theme-softmono .mobile-bottom-nav {
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    height: 64px !important;
    min-height: 64px !important;
    max-height: 64px !important;
    padding: 4px 14px !important;
    border-radius: 40px !important;
    border: 0 !important;
    border-image: none !important;
    border-bottom: 2px solid #F58BC6 !important;
    background: var(--sm-ink) !important;
    box-shadow: 0 8px 24px rgba(11, 11, 12, 0.22) !important;
    overflow: visible !important;
}
body.theme-softmono .mobile-bottom-nav .nav-btn span:not(.chat-notification) {
    font-size: 11px !important;
}
body.theme-softmono .mobile-bottom-nav .nav-btn i { font-size: 18px !important; }
body.theme-softmono .mobile-bottom-nav .nav-upload-btn {
    width: 46px !important;
    height: 46px !important;
}
body.theme-softmono .mobile-bottom-nav .chat-notification {
    background: #FFFFFF !important;
    color: var(--sm-ink) !important;
    border-color: var(--sm-ink) !important;
}

/* Header: no gradient line along the bottom edge */
body.theme-softmono .header {
    border-bottom: 0 !important;
    border-image: none !important;
}

/* Content fades to white behind the floating bottom nav (phones only) */
@media (max-width: 768px) {
    body.theme-softmono::after {
        content: "";
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        height: 130px;
        pointer-events: none;
        z-index: 999998;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.85) 45%, #FFFFFF 75%);
    }
}

/* Bottom nav: no pink edge; "+" button gets a multi-colour ring */
body.theme-softmono .mobile-bottom-nav { border-bottom: 0 !important; }
body.theme-softmono .mobile-bottom-nav .nav-upload-btn {
    border: 2.5px solid transparent !important;
    background:
        linear-gradient(#0B0B0C, #0B0B0C) padding-box,
        linear-gradient(135deg, #FFB36B, #F58BC6, #7CB8FF) border-box !important;
}

/* Header storage: a ring showing how full storage is, in place of the drive icon */
body.theme-softmono .storage-info i.fa-hdd {
    display: inline-block;
    width: 20px;
    height: 20px;
    flex: none;
    border-radius: 50%;
    background: conic-gradient(#FFB36B 0%, #F58BC6 calc(var(--storage-pct, 0) * 0.5%), #7CB8FF calc(var(--storage-pct, 0) * 1%), #4A4A52 0);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4.5px), #000 calc(100% - 4px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 4.5px), #000 calc(100% - 4px));
}
body.theme-softmono .storage-info i.fa-hdd::before { content: none !important; }

/* Phones: black above the header, solid white under the floating nav.
   Phone browsers colour the status-bar area and the strip under the page from
   the page background and from fixed elements at the screen edges. */
@media (max-width: 768px) {
    html:has(body.theme-softmono) { background-color: #0B0B0C; }
    body.theme-softmono::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background-color: #0B0B0C;
        pointer-events: none;
        z-index: 999998;
    }
    body.theme-softmono::after {
        height: calc(130px + env(safe-area-inset-bottom, 0px));
        background: none;
        background-color: #FFFFFF;
        -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.85) 40%, #000 62%);
        mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.85) 40%, #000 62%);
    }
}

/* Upload / Take Photo / Add Folder / Multi Select: always one row */
body.theme-softmono .upload-buttons {
    flex-wrap: nowrap !important;
    gap: 6px !important;
}
body.theme-softmono .upload-buttons > .btn {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    justify-content: center !important;
    white-space: nowrap !important;
    padding: 9px 10px !important;
    font-size: 13px !important;
    gap: 6px !important;
}
@media (max-width: 768px) {
    /* Phones: four equal buttons, icon above the label */
    body.theme-softmono .upload-buttons > .btn {
        flex: 1 1 0 !important;
        flex-direction: column !important;
        gap: 4px !important;
        padding: 9px 2px !important;
        font-size: 11px !important;
        line-height: 1.1 !important;
        border-radius: 14px !important;
    }
    body.theme-softmono .upload-buttons > .btn i { font-size: 15px !important; }
}

/* Phones: menus, sheets, chat and dialogs stop above the floating nav instead of running behind it */
@media (max-width: 768px) {
    body.theme-softmono {
        /* Space the page reserves for the nav: 64px pill + 10px gap below + 10px gap above */
        --mobile-nav-height: calc(84px + env(safe-area-inset-bottom, 0px));
    }
    /* The white fade sits behind menus and sheets, not over them */
    body.theme-softmono::after { z-index: 450; }
    body.theme-softmono .modal {
        padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
    }
    body.theme-softmono .modal-content {
        max-height: calc(100vh - 140px - env(safe-area-inset-bottom, 0px)) !important;
    }
}

/* Chat and menu headers are black: keep every label and button on them white */
body.theme-softmono .chat-header,
body.theme-softmono .chat-header h2,
body.theme-softmono .chat-header h3,
body.theme-softmono .chat-header span,
body.theme-softmono .chat-header i,
body.theme-softmono .chat-header .chat-close,
body.theme-softmono .menu-header h2,
body.theme-softmono .menu-header span,
body.theme-softmono .menu-header .menu-close {
    color: #FFFFFF !important;
}

/* ============================================================================
   Folder tabs under the header (phones only): Shared files / Your files
   ============================================================================ */
body.theme-softmono .sm-tabs { display: none; }
@media (max-width: 768px) {
    body.theme-softmono .sm-tabs {
        display: flex;
        align-items: flex-end;
        gap: 4px;
        background: var(--sm-ink);
        padding: 2px 15px 0;
    }
    body.theme-softmono .sm-tab {
        flex: 1 1 0;
        min-width: 0;
        min-height: 44px;
        border: 0;
        border-radius: 14px 14px 0 0;
        background: var(--sm-ink-3);
        color: #E4E4E8;
        font-size: 14px;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        padding: 0 8px;
        cursor: pointer;
        white-space: nowrap;
    }
    body.theme-softmono .sm-tab.active {
        min-height: 52px;
        background: var(--sm-surface);
        color: var(--sm-ink);
    }
    body.theme-softmono .sm-tab-count { font-weight: 300; }

    /* One section at a time, joined to the active tab */
    body.theme-softmono.sm-tab-shared .file-section.client-section,
    body.theme-softmono.sm-tab-mine .file-section.admin-section { display: none !important; }
    body.theme-softmono .container { margin-top: 0 !important; }
    body.theme-softmono .file-management { margin-top: 0 !important; }
    body.theme-softmono .file-section {
        border-radius: 0 0 10px 10px !important;
        margin-top: 0 !important;
        padding-top: 14px;
    }
    /* The tab already names the section, so its own title row goes */
    body.theme-softmono .section-title-row { display: none !important; }
    /* With no title row, the settings gear rejoins the button row */
    body.theme-softmono .upload-settings {
        position: static !important;
        flex: none;
    }
    body.theme-softmono .upload-buttons { align-items: stretch !important; }
    body.theme-softmono .upload-settings > .btn { height: 100% !important; min-height: 40px; border-radius: 14px !important; }
    body.theme-softmono .upload-buttons > .btn { font-size: 10.5px !important; }
}
@media (max-width: 768px) {
    /* Close the hairline seam between the header and the tab strip */
    body.theme-softmono .sm-tabs { margin-top: -1px; padding-top: 3px; }
}
@media (max-width: 768px) {
    /* Both tabs are the same height whether selected or not */
    body.theme-softmono .sm-tab,
    body.theme-softmono .sm-tab.active { min-height: 48px; height: 48px; }
}
@media (max-width: 768px) {
    /* Bottom bar slides away while scrolling down and returns on scroll up */
    body.theme-softmono .mobile-bottom-nav { transition: transform 0.25s ease !important; }
    body.theme-softmono.sm-nav-hidden .mobile-bottom-nav {
        transform: translate3d(0, calc(100% + 40px), 0) !important;
    }
    body.theme-softmono::after { transition: opacity 0.25s ease; }
    body.theme-softmono.sm-nav-hidden::after { opacity: 0; }
}
@media (max-width: 768px) {
    /* The upload drop zone folds away with the bottom bar while scrolling down */
    body.theme-softmono .upload-area {
        max-height: 220px;
        overflow: hidden;
        transition: max-height 0.25s ease, padding 0.25s ease, margin 0.25s ease, opacity 0.2s ease, border-width 0.25s ease !important;
    }
    body.theme-softmono.sm-nav-hidden .upload-area {
        max-height: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        border-width: 0 !important;
        opacity: 0;
        pointer-events: none;
    }
}

/* ============================================================================
   Loading: shimmer placeholder rows until the file lists arrive
   ============================================================================ */
body.theme-softmono.sm-loading .file-list > * { display: none !important; }
body.theme-softmono.sm-loading .file-list::before {
    content: "";
    display: block;
    height: 408px;
    margin: 10px 20px 20px;
    background-image:
        linear-gradient(100deg, rgba(255, 255, 255, 0) 35%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0) 65%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='68'%3E%3Crect x='0' y='12' width='44' height='44' rx='8' fill='%23E9E9EC'/%3E%3Crect x='58' y='18' width='150' height='12' rx='6' fill='%23E9E9EC'/%3E%3Crect x='58' y='40' width='84' height='10' rx='5' fill='%23F0F0F2'/%3E%3C/svg%3E");
    background-repeat: no-repeat, repeat-y;
    background-size: 250% 100%, 300px 68px;
    background-position: 160% 0, 0 0;
    animation: sm-shimmer 1.3s linear infinite;
}
@keyframes sm-shimmer {
    from { background-position: 160% 0, 0 0; }
    to { background-position: -60% 0, 0 0; }
}
@media (prefers-reduced-motion: reduce) {
    body.theme-softmono.sm-loading .file-list::before { animation: none; }
}
/* Counts read "(0)" until the lists load, so hold them back */
body.theme-softmono.sm-loading .file-count,
body.theme-softmono.sm-loading .sm-tab-count { visibility: hidden; }

/* ============================================================================
   Header search: magnifier button that swaps the storage pill for a search field
   ============================================================================ */
body.theme-softmono .sm-search-box { display: none; }
body.theme-softmono.sm-search-open .storage-info,
body.theme-softmono.sm-search-open .sm-search-toggle { display: none !important; }
body.theme-softmono.sm-search-open .sm-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 280px;
    width: 340px;
    max-width: 100%;
    min-height: 40px;
    padding: 0 6px 0 16px;
    border-radius: 22px;
    background: var(--sm-ink-2);
    color: #FFFFFF;
    animation: sm-search-in 0.18s ease;
}
@keyframes sm-search-in {
    from { opacity: 0; transform: scaleX(0.6); transform-origin: right center; }
    to { opacity: 1; transform: scaleX(1); transform-origin: right center; }
}
body.theme-softmono .sm-search-box > i { color: var(--sm-on-ink-muted); font-size: 14px; }
body.theme-softmono .sm-search-box input {
    flex: 1;
    min-width: 0;
    height: 40px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #FFFFFF;
    font-size: 16px;
    -webkit-appearance: none;
    appearance: none;
}
body.theme-softmono .sm-search-box input::placeholder { color: var(--sm-on-ink-muted); }
body.theme-softmono .sm-search-box input::-webkit-search-cancel-button { display: none; }
body.theme-softmono .sm-search-close {
    flex: none;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: var(--sm-ink-3);
    color: #FFFFFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
body.theme-softmono .sm-search-box input:focus-visible { outline: 0; }
body.theme-softmono .sm-search-box:focus-within { box-shadow: 0 0 0 2px #7CB8FF; }

/* Filter results */
body.theme-softmono .sm-search-hide { display: none !important; }
body.theme-softmono .file-list.sm-search-empty::after {
    content: "No files match your search";
    display: block;
    padding: 36px 20px;
    text-align: center;
    color: var(--sm-muted);
}
body.theme-softmono.sm-searching .file-list .empty-state { display: none !important; }

@media (max-width: 768px) {
    body.theme-softmono.sm-search-open .sm-search-box {
        order: -1;
        width: 100%;
        flex: 1 1 100%;
    }
}
@media (max-width: 768px) {
    /* Phones hide the header's chat and menu buttons (the bottom bar has them), so the
       search button sits beside the storage pill instead. */
    body.theme-softmono .header .storage-info {
        width: auto !important;
        flex: 1 1 0 !important;
        min-width: 0;
    }
    body.theme-softmono .header .sm-search-toggle {
        display: flex !important;
        order: -1 !important;
        flex: none;
        width: 40px;
        height: 40px;
        border-radius: 50% !important;
        align-items: center;
        justify-content: center;
    }
    body.theme-softmono.sm-search-open .header .sm-search-toggle { display: none !important; }
    body.theme-softmono .header .header-actions { flex-wrap: nowrap !important; gap: 8px !important; }
}

/* While searching, the section and tab counts show the number of matches instead of the totals */
body.theme-softmono .sm-match-count { display: none; }
body.theme-softmono.sm-searching .sm-match-count { display: inline-block; visibility: visible; }
body.theme-softmono.sm-searching .file-count:not(.sm-match-count):not(.file-section-header .file-count),
body.theme-softmono.sm-searching .sm-tab-count:not(.sm-match-count) { display: none !important; }
body.theme-softmono.sm-searching .section-title .sm-match-count {
    background: var(--sm-ink) !important;
    color: #FFFFFF !important;
}
/* Group labels keep their totals out of the way during a search */
body.theme-softmono.sm-searching .file-section-header .file-count { display: none !important; }

/* The theme and layout switches belong to the previous look; they are not offered in Soft Mono */
body.theme-softmono .menu-theme-toggle,
body.theme-softmono .menu-layout-toggle { display: none !important; }

/* Admin header: no gradient line along the bottom edge (matches the client portal) */
body.sm-admin .header {
    border-bottom: 0 !important;
    border-image: none !important;
}

/* ============================================================================
   Admin login page (body.sm-login)
   ============================================================================ */
body.sm-login {
    --sm-ink: #0B0B0C;
    --sm-ink-3: #2A2A2E;
    --sm-ground: #F1F1F3;
    --sm-muted: #5F5F68;
    --sm-soft: #E9E9EC;
    --sm-grad: linear-gradient(135deg, #FFB36B, #F58BC6, #7CB8FF);
    background: var(--sm-ink) !important;
    font-family: 'Outfit', 'Segoe UI', system-ui, sans-serif !important;
    color: var(--sm-ink);
}
body.sm-login button,
body.sm-login input { font-family: inherit; }
body.sm-login .login-wrapper { filter: none !important; }
body.sm-login .login-container,
body.sm-login .qr-panel { background: #FFFFFF !important; }
body.sm-login .login-container { border-radius: 18px; }
body.sm-login .qr-panel { border-color: var(--sm-soft) !important; }

/* Shield mark: black disc with the gradient ring */
body.sm-login .logo i {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px !important;
    color: #FFFFFF !important;
    border: 3px solid transparent;
    background: linear-gradient(var(--sm-ink), var(--sm-ink)) padding-box, var(--sm-grad) border-box;
    box-sizing: border-box;
}
body.sm-login .logo h1 { color: var(--sm-ink) !important; font-weight: 600; letter-spacing: -0.01em; }
body.sm-login .logo p { color: var(--sm-muted) !important; font-weight: 300; }

body.sm-login .form-group label { color: var(--sm-ink) !important; font-weight: 500; }
body.sm-login .form-group input {
    background: var(--sm-ground) !important;
    border: 2px solid transparent !important;
    border-radius: 12px !important;
    color: var(--sm-ink) !important;
    font-size: 16px;
}
body.sm-login .form-group input:focus {
    border-color: var(--sm-ink) !important;
    background: #FFFFFF !important;
    outline: 0;
}
body.sm-login .toggle-password { color: var(--sm-muted) !important; }
body.sm-login .toggle-password:hover { color: var(--sm-ink) !important; }

body.sm-login .btn,
body.sm-login .qr-refresh-btn {
    background: var(--sm-ink) !important;
    color: #FFFFFF !important;
    border-radius: 26px !important;
    box-shadow: none !important;
    font-weight: 600;
}
body.sm-login .btn:hover,
body.sm-login .qr-refresh-btn:hover { background: var(--sm-ink-3) !important; }
body.sm-login .btn-qr {
    background: var(--sm-soft) !important;
    color: var(--sm-ink) !important;
    border: 2px solid transparent !important;
    border-radius: 26px !important;
    font-weight: 500;
}
body.sm-login .btn-qr:hover { background: #DCDCE0 !important; color: var(--sm-ink) !important; }
body.sm-login .or-divider { color: var(--sm-muted) !important; }
body.sm-login .or-divider::before,
body.sm-login .or-divider::after { background: var(--sm-soft) !important; }
body.sm-login .back-link a,
body.sm-login .forgot-link a { color: var(--sm-ink) !important; }
body.sm-login .alert {
    background: #FCE7E8 !important;
    color: #9E2A2F !important;
    border: 0 !important;
    border-radius: 12px !important;
}

/* QR panel */
body.sm-login .qr-panel-title { color: var(--sm-ink) !important; }
body.sm-login .qr-panel-title i { color: var(--sm-ink) !important; }
body.sm-login .qr-close-btn { background: var(--sm-soft) !important; color: var(--sm-ink) !important; border-radius: 50% !important; }
body.sm-login .qr-code-box { background: var(--sm-ground) !important; border-color: var(--sm-soft) !important; }
body.sm-login .qr-code-box::before,
body.sm-login .qr-code-box::after { border-color: var(--sm-ink) !important; }
body.sm-login .qr-spinner { border-top-color: var(--sm-ink) !important; }
body.sm-login .qr-timer,
body.sm-login .qr-hint { color: var(--sm-muted) !important; }
@media (max-width: 768px) {
    /* The upload button row folds away with the drop zone and bottom bar while scrolling down */
    body.theme-softmono .section-controls {
        max-height: 140px;
        overflow: hidden;
        transition: max-height 0.25s ease, padding 0.25s ease, opacity 0.2s ease !important;
    }
    body.theme-softmono.sm-nav-hidden .section-controls {
        max-height: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        opacity: 0;
        pointer-events: none;
    }
}

/* ============================================================================
   Activity history side panel (admin home and the admin view of a portal)
   ============================================================================ */
:is(body.sm-admin, body.theme-softmono) .history-side-panel {
    background: #F1F1F3 !important;
    box-shadow: -8px 0 30px rgba(11, 11, 12, 0.18) !important;
    font-family: 'Outfit', 'Segoe UI', system-ui, sans-serif;
    color: #0B0B0C;
}
:is(body.sm-admin, body.theme-softmono) .history-overlay { background: rgba(11, 11, 12, 0.55) !important; }
:is(body.sm-admin, body.theme-softmono) .history-panel-header {
    background: #0B0B0C !important;
    color: #FFFFFF !important;
}
:is(body.sm-admin, body.theme-softmono) .history-panel-header h3 {
    color: #FFFFFF !important;
    font-weight: 600;
    letter-spacing: -0.01em;
}
:is(body.sm-admin, body.theme-softmono) .close-panel-btn {
    width: 36px !important;
    height: 36px;
    border-radius: 50%;
    background: #2A2A2E !important;
    color: #FFFFFF !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
:is(body.sm-admin, body.theme-softmono) .close-panel-btn:hover { background: #3A3A40 !important; }

/* Summary: black card with white tiles */
:is(body.sm-admin, body.theme-softmono) .history-summary {
    background: #0B0B0C !important;
    border-radius: 12px !important;
}
:is(body.sm-admin, body.theme-softmono) .history-summary h4 { color: #FFFFFF !important; font-weight: 500; }
:is(body.sm-admin, body.theme-softmono) .summary-item {
    background: #1E1E21 !important;
    border-radius: 8px !important;
}
:is(body.sm-admin, body.theme-softmono) .summary-item .count { color: #FFFFFF !important; font-weight: 600; }
:is(body.sm-admin, body.theme-softmono) .summary-item .label { color: #C9C9CF !important; font-weight: 300; }

/* Filters */
:is(body.sm-admin, body.theme-softmono) .history-filter {
    background: #FFFFFF !important;
    border-radius: 12px !important;
}
:is(body.sm-admin, body.theme-softmono) .history-filter label { color: #0B0B0C !important; font-weight: 500; }
:is(body.sm-admin, body.theme-softmono) .history-action-filter select {
    background-color: #F1F1F3 !important;
    border: 2px solid transparent !important;
    border-radius: 20px !important;
    color: #0B0B0C !important;
    font-family: inherit;
}
:is(body.sm-admin, body.theme-softmono) .history-action-filter select:focus {
    border-color: #0B0B0C !important;
    box-shadow: none !important;
    outline: 0;
}
:is(body.sm-admin, body.theme-softmono) .history-side-panel .toggle-slider { background-color: #0B0B0C !important; }
:is(body.sm-admin, body.theme-softmono) .history-side-panel .toggle-switch input:checked + .toggle-slider { background-color: #C9C9CF !important; }
:is(body.sm-admin, body.theme-softmono) .history-loading { color: #5F5F68 !important; }

/* Timeline */
:is(body.sm-admin, body.theme-softmono) .history-timeline {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 16px 16px 4px;
}
:is(body.sm-admin, body.theme-softmono) .history-timeline:empty { display: none; }
:is(body.sm-admin, body.theme-softmono) .history-item { border-bottom-color: #F1F1F3 !important; }
:is(body.sm-admin, body.theme-softmono) .history-item::before { background: #E4E4E8 !important; }
:is(body.sm-admin, body.theme-softmono) .history-icon { color: #FFFFFF !important; }
:is(body.sm-admin, body.theme-softmono) .history-icon.view { background: #3E7FD0 !important; }
:is(body.sm-admin, body.theme-softmono) .history-icon.download { background: #0B0B0C !important; }
:is(body.sm-admin, body.theme-softmono) .history-icon.upload { background: #C2620A !important; color: #FFFFFF !important; }
:is(body.sm-admin, body.theme-softmono) .history-icon.delete { background: #D93D42 !important; }
:is(body.sm-admin, body.theme-softmono) .history-content .activity-title { color: #0B0B0C !important; font-weight: 500; }
:is(body.sm-admin, body.theme-softmono) .history-content .activity-details { color: #5F5F68 !important; }
:is(body.sm-admin, body.theme-softmono) .history-content .activity-time { color: #5F5F68 !important; font-weight: 300; }
:is(body.sm-admin, body.theme-softmono) .no-history { color: #5F5F68 !important; }
:is(body.sm-admin, body.theme-softmono) .no-history i { color: #C9C9CF !important; }

@media (max-width: 768px) {
    /* In a portal the panel must clear the floating bottom bar */
    body.theme-softmono .history-panel-content {
        padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)) !important;
    }
}
@media (max-width: 768px) {
    /* With the buttons, drop zone and bottom bar folded away, the list uses the freed height */
    body.theme-softmono .file-list { transition: max-height 0.25s ease; }
    body.theme-softmono.sm-nav-hidden .file-list {
        max-height: calc(100vh - 215px) !important;
        max-height: calc(100dvh - 215px) !important;
    }
}

/* ============================================================================
   Media viewer / lightbox: dark stage so the photo or video carries the screen
   ============================================================================ */
body.theme-softmono .lightbox { background: #0B0B0C !important; }
body.theme-softmono .gallery-header {
    background: #0B0B0C !important;
    box-shadow: none !important;
    border: 0 !important;
    border-radius: 0 !important;
}
body.theme-softmono #galleryTitle,
body.theme-softmono #galleryTitleText { color: #FFFFFF !important; font-weight: 500; }
body.theme-softmono #galleryTitle i { color: #C9C9CF !important; }
body.theme-softmono .gallery-header-meta,
body.theme-softmono #galleryFileCount,
body.theme-softmono #galleryFileCount i { color: #C9C9CF !important; font-weight: 300; }
body.theme-softmono .gallery-control-btn {
    background: #2A2A2E !important;
    border: 0 !important;
    color: #FFFFFF !important;
    border-radius: 22px !important;
    box-shadow: none !important;
    font-family: inherit;
}
body.theme-softmono .gallery-control-btn i { color: #FFFFFF !important; }
body.theme-softmono .gallery-control-btn:hover { background: #3A3A40 !important; }
body.theme-softmono #galleryDownloadBtn {
    background: #FFFFFF !important;
    color: #0B0B0C !important;
    font-weight: 600;
}
body.theme-softmono #galleryDownloadBtn i { color: #0B0B0C !important; }
body.theme-softmono #galleryDownloadBtn:hover { background: #E9E9EC !important; }
body.theme-softmono .gallery-close-btn {
    background: #2A2A2E !important;
    border: 0 !important;
    color: #FFFFFF !important;
    border-radius: 22px !important;
    font-family: inherit;
}
body.theme-softmono .gallery-close-btn:hover { background: #D93D42 !important; }
body.theme-softmono .gallery-slideshow-container {
    background: #0B0B0C !important;
    box-shadow: none !important;
    border: 0 !important;
    border-radius: 0 !important;
}
body.theme-softmono .gallery-slideshow-main { background: #0B0B0C !important; }
body.theme-softmono .gallery-slide img,
body.theme-softmono .gallery-slide video { border-radius: 8px !important; box-shadow: none !important; }
body.theme-softmono .gallery-slideshow-controls {
    background: #0B0B0C !important;
    border-top: 1px solid #2A2A2E !important;
}
body.theme-softmono .gallery-slide-counter,
body.theme-softmono .gallery-slide-counter span { color: #C9C9CF !important; }
body.theme-softmono .gallery-slide-nav {
    background: #2A2A2E !important;
    color: #FFFFFF !important;
    border: 0 !important;
    box-shadow: none !important;
}
body.theme-softmono .gallery-slide-nav:hover { background: #3A3A40 !important; }
body.theme-softmono .gallery-thumbnail {
    background: #1E1E21 !important;
    border-color: transparent !important;
    border-radius: 8px !important;
}
body.theme-softmono .gallery-thumbnail.active { border-color: #FFFFFF !important; }
body.theme-softmono .gallery-thumbnail-name { color: #C9C9CF !important; }
body.theme-softmono .gallery-notes-section > div {
    background: #1E1E21 !important;
    box-shadow: none !important;
}
body.theme-softmono .gallery-notes-section h2 { color: #FFFFFF !important; font-weight: 500 !important; }
body.theme-softmono #galleryNotesContent,
body.theme-softmono #galleryNotesContent p { color: #C9C9CF !important; }

/* The note editor opens above the viewer when started from its Note button */
body.theme-softmono #slideInOverlay { z-index: 3100 !important; }
body.theme-softmono #editNotePanel { z-index: 3200 !important; }

/* ============================================================================
   Payment options (side menu and the phone Pay sheet): colour fading to black
   ============================================================================ */
body.theme-softmono .payment-btn {
    background:
        linear-gradient(90deg, rgba(11, 11, 12, 0) 0%, rgba(11, 11, 12, 0.55) 14%, #0B0B0C 42%),
        linear-gradient(180deg, #FFB36B, #F58BC6, #7CB8FF),
        #0B0B0C !important;
    color: #FFFFFF !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    font-weight: 500;
}
body.theme-softmono .payment-btn i { color: #FFFFFF !important; }
body.theme-softmono .payment-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(11, 11, 12, 0.22) !important;
    color: #FFFFFF !important;
}
body.theme-softmono .payment-dropdown-content {
    background: transparent !important;
    backdrop-filter: none !important;
    padding: 6px 0 0 !important;
}

/* Admin home on phones: the four header buttons share one row, icon above label */
@media (max-width: 768px) {
    body.sm-admin .header { padding: 16px 14px !important; }
    body.sm-admin .header-content { flex-direction: column !important; align-items: stretch !important; gap: 14px !important; }
    body.sm-admin .header .logo { justify-content: center; }
    body.sm-admin .header-actions {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        width: 100% !important;
    }
    body.sm-admin .header-actions .btn {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        width: auto !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
        padding: 9px 2px !important;
        font-size: 11px !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
        border-radius: 14px !important;
        margin: 0 !important;
    }
    body.sm-admin .header-actions .btn i { font-size: 15px !important; margin: 0 !important; }
}
@media (max-width: 768px) {
    /* Client cards were fixed at 350px and ran off the right edge on phones */
    body.sm-admin .container { padding-left: 15px !important; padding-right: 15px !important; }
    body.sm-admin .clients-grid { grid-template-columns: minmax(0, 1fr) !important; }
    body.sm-admin .client-card { min-width: 0 !important; }
}
@media (max-width: 768px) {
    /* Admin home on phones: the three summary tiles join into one bar, same overall width as before */
    body.sm-admin .stats {
        gap: 0 !important;
        background: #0B0B0C;
        border-radius: 14px;
        overflow: hidden;
    }
    body.sm-admin .stat-card,
    body.sm-admin .stat-card:nth-child(2) {
        background: transparent !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 14px 6px !important;
        gap: 6px !important;
        min-width: 0;
    }
    body.sm-admin .stat-card + .stat-card { border-left: 1px solid #2A2A2E; }
    body.sm-admin .stat-icon { display: none !important; }
    body.sm-admin .stat-content h3 { font-size: 20px !important; white-space: nowrap; }
    body.sm-admin .stat-content p { font-size: 12px !important; white-space: nowrap; }
}
