:root {
    --bg-color: #f5f5f5;
    --surface-color: #ffffff;
    --surface-hover: #f9f9f9;
    --text-main: #333333;
    --text-muted: #888888;
    --border-color: #e0e0e0;
    --primary-color: #06C755; /* LINE Green */
    --header-bg: rgba(255, 255, 255, 0.9);
    --bubble-sent: #e0e0e0;
    --bubble-recv: #ffffff;
    --bubble-border: #e0e0e0;
    --delete-bg: #ff3b30;
    --active-highlight: #ffe0b2;
    --highlight-border: #ff9800;
}

[data-theme="dark"] {
    --bg-color: #121212;
    --surface-color: #1e1e1e;
    --surface-hover: #2a2a2a;
    --text-main: #e0e0e0;
    --text-muted: #aaaaaa;
    --border-color: #333333;
    --primary-color: #888888;
    --header-bg: rgba(30, 30, 30, 0.9);
    --bubble-sent: #3a3a3a;
    --bubble-recv: #2a2a2a;
    --bubble-border: #333333;
    --active-highlight: #5c4000;
    --highlight-border: #ffb74d;
}

[data-theme="line"] {
    --bg-color: #8ca9d3;
    --surface-color: #ffffff;
    --surface-hover: #f0f0f0;
    --text-main: #000000;
    --text-muted: #666666;
    --border-color: #e0e0e0;
    --primary-color: #06C755;
    --header-bg: rgba(255, 255, 255, 0.9);
    --bubble-sent: #85e249;
    --bubble-recv: #ffffff;
    --bubble-border: transparent;
    --active-highlight: #ffe0b2;
    --highlight-border: #ff9800;
}

[data-theme="pop"] {
    --bg-color: #f4ebfa;
    --surface-color: #ffffff;
    --surface-hover: #f9f0ff;
    --text-main: #4a3b52;
    --text-muted: #9c8a9e;
    --border-color: #e5d5ec;
    --primary-color: #7b2cbf;
    --header-bg: rgba(255, 255, 255, 0.95);
    --bubble-sent: #9d4edd;
    --bubble-recv: #e9d5ff; /* More distinct purple */
    --bubble-border: transparent;
    --active-highlight: #ffcce6;
    --highlight-border: #ff66b2;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]):not([data-theme="line"]):not([data-theme="pop"]) {
        --bg-color: #121212;
        --surface-color: #1e1e1e;
        --surface-hover: #2a2a2a;
        --text-main: #e0e0e0;
        --text-muted: #aaaaaa;
        --border-color: #333333;
        --primary-color: #888888;
        --header-bg: rgba(30, 30, 30, 0.9);
        --bubble-sent: #3a3a3a;
        --bubble-recv: #2a2a2a;
        --bubble-border: #333333;
        --active-highlight: #5c4000;
        --highlight-border: #ffb74d;
    }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; 
    background-color: var(--bg-color); 
    color: var(--text-main);
    transition: background-color 0.3s, color 0.3s;
}

.view { display: none; height: 100%; flex-direction: column; overflow: hidden; }
.view.active { display: flex; }

.hidden { display: none !important; }

.sticky-header { 
    position: relative; flex-shrink: 0; width: 100%; height: 65px;
    background-color: var(--header-bg); 
    color: var(--text-main); 
    padding: 0 15px; z-index: 1000; 
    display: flex; align-items: center; justify-content: space-between; 
    border-bottom: 1px solid var(--border-color);
    box-sizing: border-box;
}
.sticky-header .icon-btn { color: var(--text-main); }
.room-header { 
    background-color: var(--header-bg) !important; 
    padding: 0 15px; 
    flex-direction: row !important;
}
.header-top { display: flex; align-items: center; width: 100%; justify-content: space-between; margin-bottom: 10px; }
.header-top h1 { font-size: 18px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-main); flex: 1; }
.search-bar { display: flex; width: 100%; gap: 10px; }
.search-bar input { 
    flex: 1; padding: 10px 15px; border-radius: 20px; 
    border: 1px solid var(--border-color); 
    background: var(--bg-color); color: var(--text-main);
    outline: none; font-size: 14px; transition: border-color 0.2s;
}
.search-bar input:focus { border-color: var(--primary-color); }
.add-btn { cursor: pointer; font-size: 24px; font-weight: 300; color: var(--primary-color); display: flex; align-items: center; justify-content: center; }
.add-btn:hover { opacity: 0.8; }
.back-btn { background: none; border: none; color: var(--text-main); font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
.icon-btn, .back-btn, .fab, #main-memo-btn, #fake-memo-add-btn, #memo-header-add-btn, #memo-header-edit-btn, #memo-header-search-btn, #memo-header-bulk-delete-btn, #memo-header-delete-confirm-btn, #scroll-date-label {
    color: var(--primary-color) !important;
}

.icon-btn svg, .back-btn svg, .fab svg, .dropdown-item svg, .ranking-icon svg {
    stroke: var(--primary-color) !important;
}

.icon-btn { background: none; border: none; font-size: 20px; cursor: pointer; min-height: 40px; min-width: 40px; display: flex; align-items: center; justify-content: center; padding: 4px; }

@media (max-width: 380px) {
    #list-header-left { gap: 4px !important; }
    #list-header-left h1 { font-size: 16px !important; }
    .sticky-header { padding: 0 8px !important; }
    .sticky-header div[style*="gap:2px"] { gap: 1px !important; }
}

.list-container, .room-container { 
    position: relative; flex: 1; height: auto;
    overflow-y: auto; background-color: var(--bg-color); 
    overflow-x: hidden; -webkit-overflow-scrolling: touch; 
}
.room-container { background-color: transparent; } /* Line風などで背景が透過されるように */

/* Keypad */
#keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; max-width: 260px; margin: 20px auto 0; }
.key-btn { 
    background: var(--surface-color); border-radius: 50%; width: 75px; height: 75px; font-size: 28px; 
    color: var(--text-main); border: 1px solid var(--border-color); box-shadow: 0 2px 5px rgba(0,0,0,0.05); 
    display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.1s; 
    margin: 0 auto; outline: none; -webkit-tap-highlight-color: transparent; 
}
.key-btn:active { background: var(--surface-hover); }

/* Chat List */
.chat-item-wrapper { position: relative; overflow: hidden; border-bottom: 1px solid var(--border-color); background: var(--delete-bg); }
.delete-btn-bg { position: absolute; right: 0; top: 0; bottom: 0; width: 80px; display: flex; align-items: center; justify-content: center; color: white; font-weight: bold; cursor: pointer; z-index: 1; font-size: 14px; }
.chat-item { 
    padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; 
    background-color: var(--surface-color); position: relative; z-index: 2; transition: background-color 0.1s; 
    user-select: none; -webkit-user-select: none;
}
.chat-item:hover { background-color: var(--surface-hover); }
.chat-item.holding { opacity: 0.7 !important; background-color: var(--surface-hover) !important; }

.chat-info { flex: 1; overflow: hidden; pointer-events: none; display: flex; align-items: center; gap: 15px; }
.chat-icon { width: 44px; height: 44px; border-radius: 50%; background-color: var(--border-color); flex-shrink: 0; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--text-muted); }
.chat-desc { display: flex; flex-direction: column; overflow: hidden; }
.chat-desc h3 { font-size: 16px; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.chat-desc p { font-size: 13px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top:2px; }

.chat-meta { text-align: right; margin-left: 10px; pointer-events: none; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; height: 44px; }
.chat-date { font-size: 11px; color: var(--text-muted); margin-bottom: 4px; }
.chat-badge { font-size: 10px; background: var(--border-color); color: var(--text-muted); border-radius: 10px; padding: 2px 6px; }

/* Room */
.virtual-spacer { width: 1px; }
.message-list { position: absolute; top: 0; left: 0; width: 100%; padding: 15px 15px; display: flex; flex-direction: column; }
.message-row { display: flex; flex-direction: column; margin-bottom: 12px; width: 100%; }
.date-label { 
    align-self: center; background-color: var(--border-color); color: var(--text-muted); 
    padding: 6px 14px; border-radius: 14px; font-size: 12px; margin-bottom: 15px; margin-top: 5px; text-align: center; font-weight: 500;
}

.message-wrapper { display: flex; max-width: 85%; align-items: flex-end; transition: flex-direction 0.2s; user-select: text; -webkit-user-select: text; gap: 8px; }
.message-wrapper.sent { align-self: flex-end; flex-direction: row-reverse; }
.message-wrapper.received { align-self: flex-start; }

.bubble { 
    padding: 10px 14px; border-radius: 18px; font-size: 14.5px; word-wrap: break-word; white-space: pre-wrap; line-height: 1.4; 
    border: 1px solid var(--bubble-border);
    cursor: text; user-select: text; -webkit-user-select: text; -webkit-touch-callout: default; 
    word-break: break-all; overflow-wrap: anywhere;
}
.bubble a { color: #007aff; text-decoration: underline; pointer-events: auto; }
.message-wrapper.sent .bubble { background-color: var(--bubble-sent); border-bottom-right-radius: 4px; border: 1px solid transparent; color: #fff; }
[data-theme="pop"] .message-wrapper.sent .bubble { color: #fff; }
[data-theme="light"] .message-wrapper.sent .bubble, [data-theme="line"] .message-wrapper.sent .bubble, [data-theme="pop"] .message-wrapper.sent .bubble { color: inherit; }
/* V12: pop sent bubble must have white text for dark purple */
[data-theme="pop"] .message-wrapper.sent .bubble { color: #ffffff; }

.message-wrapper.received .bubble { background-color: var(--bubble-recv); border-bottom-left-radius: 4px; }

/* Favorite Star */
.favorite-star { position: absolute; top: -3px; color: #ffcc00; font-size: 18px; filter: drop-shadow(0 1px 1px rgba(0,0,0,0.2)); z-index: 5; }
.message-wrapper.sent .favorite-star { left: -8px; }
.message-wrapper.received .favorite-star { right: -8px; }

.user-icon { 
    width: 32px; height: 32px; border-radius: 50%; background-color: var(--border-color); 
    background-size: cover; background-position: center; flex-shrink: 0; 
}
.message-wrapper.sent .user-icon { display: none; }
.time { font-size: 11px; color: var(--text-muted); margin: 0 4px; white-space: nowrap; user-select: none; margin-bottom: 2px; }

.bubble mark { background-color: #ffeb3b; color: #000; font-weight: bold; padding: 0 2px; border-radius: 2px; }

@keyframes pulse-orange { 0% { box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.4); } 70% { box-shadow: 0 0 0 8px rgba(255, 152, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 152, 0, 0); } }
.active-highlight .bubble { animation: pulse-orange 1.5s infinite; border: 2px solid var(--highlight-border); background-color: var(--active-highlight)!important; }

/* Modals */
.search-nav { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--surface-color); color: var(--text-main); border: 1px solid var(--border-color); border-radius: 25px; display: flex; align-items: center; padding: 5px 15px; gap: 10px; z-index: 2000; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.search-nav.hidden { display: none; }
.nav-btn { background: none; border: none; color: var(--text-main); font-size: 18px; cursor: pointer; min-height: 44px; min-width: 44px; display: flex; align-items: center; justify-content: center; }
#search-count { font-size: 14px; min-width: 60px; text-align: center; }

.modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.4); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); z-index: 3000; display: flex; align-items: flex-end; justify-content: center; opacity: 1; transition: opacity 0.2s; }
.modal.hidden { display: none; opacity: 0; pointer-events: none; }
.modal-content { 
    background: var(--surface-color); color: var(--text-main); width: 100%; 
    height: auto; max-height: 90vh; /* V20: Adjusted height */
    border-radius: 24px 24px 0 0; display: flex; flex-direction: column; 
    overflow: hidden; animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1); 
}
#merge-confirm-modal { align-items: center; }
#merge-confirm-modal .modal-content {
    border-radius: 24px;
    margin: auto;
    width: 90%;
    max-width: 400px;
    height: auto;
    animation: fadeInScale 0.3s ease;
}
@keyframes fadeInScale { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
.modal-content.fullscreen { height: 100vh; max-height: 100vh; border-radius: 0; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--border-color); background: var(--surface-color); z-index: 10; font-weight: 600; font-size: 18px; }
.close-btn { background: var(--border-color); border-radius: 50%; border: none; width: 30px; height: 30px; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--text-main); }
.modal-list { flex: 1; overflow-y: auto; padding: 0; -webkit-overflow-scrolling: touch; }
.modal-list-item { padding: 15px 20px; border-bottom: 1px solid var(--border-color); cursor: pointer; transition: background 0.1s; display: flex; flex-direction: column;}
.modal-list-item:active { background: var(--surface-hover); }
.search-hit-sender { font-size: 12px; color: var(--primary-color); margin-bottom: 6px; font-weight: bold; }
.search-hit-text { font-size: 14px; color: var(--text-main); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; }

/* Calendar */
.calendar-container { flex: 1; display: flex; flex-direction: column; background: var(--surface-color); }
.calendar-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; border-bottom: 1px solid var(--border-color); }
.sticky-cal-header { position: sticky; top: 0; background: var(--surface-color); z-index: 100; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; background: var(--border-color); border-bottom: 1px solid var(--border-color); }
.cal-cell { background: var(--surface-color); text-align: center; padding: 15px 0; font-size: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; min-height: 60px; }
.cal-header-cell { background: var(--surface-hover); font-weight: 600; font-size: 12px; color: var(--text-muted); padding: 10px 0; min-height: auto; }
.cal-cell.cal-day_valid { cursor: pointer; color: var(--text-main); font-weight: bold; }
.cal-cell.cal-day_valid:active { background: var(--surface-hover); }
.cal-cell.cal-day_invalid { color: var(--border-color); cursor: default; }

.settings-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    width: 100%;
}
.settings-label span { flex: 1; }

.pass-error-text {
    color: #ff3b30;
    font-size: 11px;
    margin-top: -5px;
    margin-bottom: 5px;
    display: none;
    font-weight: bold;
}

.apply-btn {
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.2s;
    white-space: nowrap;
}
.apply-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.cal-activity-badge {
    font-size: 10px; background: var(--primary-color); color: white;
    border-radius: 8px; padding: 1px 4px; margin-top: 2px; font-weight: bold;
    min-width: 14px; text-align: center;
}
#month-list-view { height: 100%; }
#month-list-view.full-screen { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--surface-color); }

/* Tooltip */
.longpress-tooltip { position: fixed; background: rgba(0,0,0,0.8); color: white; padding: 8px 14px; border-radius: 8px; font-size: 13px; z-index: 5000; pointer-events: none; box-shadow: 0 4px 12px rgba(0,0,0,0.15); transform: translate(-50%, -120%); white-space: nowrap; opacity: 1; transition: opacity 0.2s; font-family: monospace; }
.longpress-tooltip.hidden { opacity: 0; pointer-events: none; }

/* Context Menu & Kebab Menu */
.dropdown-menu {
    position: absolute; top: 55px; right: 10px; background: var(--surface-color); border: 1px solid var(--border-color);
    border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.15); z-index: 5000; display: flex; flex-direction: column;
    overflow: hidden; min-width: 160px; animation: fadeIn 0.15s ease;
}
.dropdown-item { 
    padding: 12px 16px; font-size: 14px; display: flex; align-items: center; gap: 12px; 
    cursor: pointer; transition: background 0.2s; color: var(--text-main); 
}
.dropdown-item:active { background: var(--surface-hover); }
.dropdown-item svg { width: 18px; height: 18px; }
.dropdown-item span { color: #000; font-weight: 500; }
[data-theme="dark"] .dropdown-item span { color: #fff; } /* Override if dark */

#context-menu {
    position: fixed; background: var(--surface-color); border: 1px solid var(--border-color); border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15); min-width: 160px; z-index: 6000; overflow: hidden; padding: 5px 0;
    display: none; flex-direction: column; top: 0; left: 0; opacity: 0; transition: opacity 0.2s ease, transform 0.1s ease;
    transform: scale(0.95);
}
#context-menu.active { display: flex; opacity: 1; transform: scale(1); }
.context-item { padding: 14px 20px; font-size: 15px; color: var(--text-main); cursor: pointer; display: flex; align-items: center; gap: 12px; transition: background 0.1s; }
.context-item:active { background: var(--surface-hover); }
.context-item.danger { color: var(--delete-bg); }

@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* AND/OR Toggle */
.search-mode-toggle {
    display: flex; background: var(--border-color); border-radius: 20px; padding: 2px; gap: 2px; align-self: center; margin-bottom: 10px;
}
.mode-btn {
    border: none; background: none; padding: 4px 12px; font-size: 11px; border-radius: 18px; cursor: pointer; color: var(--text-muted); transition: 0.2s;
}
.mode-btn.active { background: var(--surface-color); color: var(--text-main); box-shadow: 0 2px 4px rgba(0,0,0,0.1); }

/* Favorite Selection Mode */
.fav-item-checkbox { width: 22px; height: 22px; margin-right: 12px; display: none; }
.favorites-list.edit-mode .fav-item-checkbox { display: block; }
.favorites-list.edit-mode .favorite-item { padding-left: 10px; }

/* Profile View Modal */
#profile-view-modal { z-index: 7000; background: rgba(0,0,0,0.85); backdrop-filter: blur(5px); }
.profile-card { transition: transform 0.3s ease; }

/* SVG Icon Consistency */
svg { flex-shrink: 0; }

/* Toast */
.toast {
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(100px);
    background: var(--text-main); color: var(--bg-color); padding: 12px 24px; border-radius: 24px;
    font-size: 14px; font-weight: 500; z-index: 9999; box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s; opacity: 0; pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; pointer-events: all; }

/* V12: Fake App Todo List style */
.fake-todo-item { display: flex; align-items: center; justify-content: space-between; padding: 12px; border-bottom: 1px solid #eee; font-size: 16px; }
.fake-todo-text { flex: 1; }
.fake-todo-del { color: #ff3b30; font-weight: bold; background: none; border: none; padding: 5px; }

.msg-favorite-indicator { display: inline-block; margin-right: 5px; color: #ffcc00; }

/* V18 Loading Spinner */
#loading-overlay:not(.hidden) {
    display: flex !important;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Password Setup Overlay Fix */
#password-setup-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 320px;
    margin: 20px auto 0 !important;
}
#password-setup-container form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
#password-setup-container h4 {
    align-self: flex-start;
}
#password-setup-container input {
    width: 100% !important;
}

.scroll-content { flex: 1; overflow-y: auto; padding: 20px; -webkit-overflow-scrolling: touch; }

/* Ranking UI */
.digit-picker-container { display: flex; justify-content: center; gap: 10px; align-items: center; margin: 10px 0 20px; }
.digit-picker-wrap { height: 90px; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; -ms-overflow-style: none; background: var(--surface-color); border-radius: 12px; border: 1px solid var(--border-color); box-shadow: inset 0 2px 4px rgba(0,0,0,0.05); }
.digit-picker-wrap::-webkit-scrollbar { display: none; }
.digit-picker-digit { height: 30px; display: flex; align-items: center; justify-content: center; scroll-snap-align: center; font-size: 18px; font-weight: bold; opacity: 0.3; transition: 0.2s; padding: 0 15px; }
.digit-picker-digit.active { opacity: 1; color: var(--primary-color); font-size: 22px; }
.digit-sep { font-size: 20px; font-weight: bold; color: var(--text-muted); }

.ranking-item { display: flex; justify-content: space-between; padding: 15px 20px; border-bottom: 1px solid var(--border-color); align-items: center; cursor: pointer; transition: background 0.1s; }
.ranking-item:active { background: var(--surface-hover); }
.ranking-rank { font-weight: bold; color: var(--text-muted); width: 30px; font-size: 14px; }
.ranking-word { 
    font-size: 16px; 
    font-weight: bold; 
    color: var(--text-main); 
    flex: 1; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    margin-right: 10px;
    outline: none;
    user-select: none;
}

/* --- Memo System Absolute Alignment (v1.1.25) --- */
#memo-index-view, #memo-edit-view, #memo-detail-view,
#fake-memo-index-view, #fake-memo-edit-view, #fake-memo-detail-view,
#memo-index-list, #fake-memo-index-list {
    text-align: left !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    width: 100% !important;
}

#memo-edit-view input, #memo-edit-view textarea,
#fake-memo-edit-view input, #fake-memo-edit-view textarea {
    text-align: left !important;
    width: 100% !important;
}

.memo-card.modal-list-item {
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left !important;
}

.memo-card.modal-list-item > div {
    flex: 1 !important;
    text-align: left !important;
}
