*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #f8f8f7;
    --bg-sidebar: #f0f0f0;
    --bg-input: #ffffff;
    --bg-message-user: #fff;
    --bg-message-bot: transparent;
    --text: #374151;
    --text-muted: #6b7280;
    --text-sidebar: #374151;
    --accent: #10a37f;
    --accent-hover: #0d8a6c;
    --border: #e5e7eb;
    --border-main: #e5e7eb;
    --border-input: #e5e7eb;
    --radius: 8px;
    --sidebar-width: 280px;

    /* Share Button variables */
    --text-primary: #34322d;
    --text-secondary: #5e5e5b;
    --fill-tsp-white-main: rgba(55, 53, 47, 0.06);
    --icon-secondary: #5e5e5b;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    height: 100vh;
    display: flex;
    overflow: hidden;
}

/* ===== SIDEBAR ===== */
#sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

#sidebar.hidden {
    transform: translateX(calc(-1 * var(--sidebar-width)));
    position: absolute;
    height: 100%;
    z-index: 100;
}

.sidebar-header {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sidebar-modes {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-mode-btn {
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-sidebar);
    transition: background 0.15s;
    border: none;
    background: none;
    text-align: left;
    width: 100%;
}

.sidebar-mode-btn:hover {
    background: rgba(0,0,0,0.05);
}

.sidebar-mode-btn.active {
    background: rgba(16, 163, 127, 0.1);
    color: var(--accent);
    font-weight: 500;
}

.sidebar-hint {
    overflow-y: auto;
    padding: 16px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    max-height: 30%;
}

.sidebar-hint h4 {
    color: var(--text);
    font-size: 13px;
    margin-bottom: 8px;
    font-weight: 600;
}

.sidebar-hint ul {
    padding-left: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-hint li {
    font-size: 12px;
}

.sidebar-hint .hint-section {
    display: none;
}

.sidebar-hint .hint-section.active {
    display: block;
}

.sidebar-new-chat {
    padding: 12px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.threads-history {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.thread-item {
    position: relative;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-sidebar);
    transition: background 0.15s;
    border: none;
    background: none;
    text-align: left;
    width: 100%;
    display: flex;
    align-items: center;
    user-select: none;
}

.thread-item .thread-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 7px 12px;
    padding-right: 4px;
    cursor: pointer;
    font-size: 14px;
}

.thread-item:hover .thread-title,
.thread-item:has(.btn-favorite.is-favorite) .thread-title {
    padding-right: 32px;
}

.thread-item .btn-favorite {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 2px;
    opacity: 0;
    transition: opacity 0.15s, transform 0.15s;
    line-height: 1;
    color: var(--text-muted);
}

.thread-item:hover .btn-favorite,
.thread-item .btn-favorite.is-favorite {
    opacity: 1;
}

.thread-item .btn-favorite:hover {
    transform: translateY(-50%) scale(1.2);
}

.thread-item .btn-favorite.is-favorite {
    color: #f59e0b; /* Golden color for active star */
    right: 0;
    font-size: 14px;
}

.thread-item:hover {
    background: rgba(0,0,0,0.05);
}

.thread-item.active {
    background: rgba(16, 163, 127, 0.1);
    color: var(--accent);
    font-weight: 500;
}

/* Прелоадер в списке тредов */
.thread-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(16, 163, 127, 0.3);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: thread-spin 0.8s linear infinite;
    flex-shrink: 0;
}

@keyframes thread-spin {
    to { transform: rotate(360deg); }
}

.threads-history::-webkit-scrollbar {
    width: 4px;
}

.threads-history::-webkit-scrollbar-thumb {
    background: #e5e7eb;
}

.btn-new-chat {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.15s;
}

.btn-new-chat:hover {
    background: #f9fafb;
}

/* ===== MAIN ===== */
#main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    background: var(--bg);
}

/* ===== HEADER ===== */
#header {
    padding: 9px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.btn-toggle-sidebar {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    transition: color 0.15s;
}

.btn-toggle-sidebar:hover { color: var(--text); }

#header h1 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    flex: 1;
}

.header-usage {
    display: flex;
    align-items: center;
    text-align: right;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.3;
}

/* Share Button */
.share-btn {
    display: none; /* Hidden by default, script.js will show it */
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    font-weight: 500;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: transparent;
    color: var(--text-primary);
    height: 32px;
    min-width: 64px;
    padding-left: 8px;
    padding-right: 8px;
    border-radius: 8px;
    gap: 4px;
    font-size: 14px;
    line-height: 18px;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
    font-family: inherit;
    margin-right: 10px;
}

@media (hover: hover) and (pointer: fine) {
    .share-btn:hover {
        opacity: 1;
        background-color: var(--fill-tsp-white-main);
    }
}

.share-btn:active {
    opacity: 0.8;
}

.share-btn svg {
    color: var(--icon-secondary);
    fill: none;
    width: 18px;
    height: 18px;
}

.share-btn .share-text {
    color: var(--text-secondary);
}

.owner-info {
    margin: 10px 20px;
    padding: 10px 15px;
    background-color: #fff5f5;
    border-left: 4px solid #f56565;
    color: #c53030;
    font-weight: 600;
    font-size: 14px;
    border-radius: 4px;
}

.header-usage .usage-percent {
    color: var(--text);
    font-weight: 500;
}

/* ===== WELCOME (до начала чата) ===== */
#welcome-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#welcome {
    flex: 1;
    overflow-y: auto;
    padding: 40px 20px;
}

#welcome-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    text-align: center;
}

#welcome h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

#welcome .welcome-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 560px;
    line-height: 1.6;
    margin-bottom: 32px;
}

.welcome-modes {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    justify-content: center;
}

.welcome-mode-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    width: 260px;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.welcome-mode-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.welcome-mode-card.active {
    border-color: var(--accent);
    background: rgba(16,163,127,0.03);
}

.welcome-mode-card h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.welcome-mode-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.welcome-hint {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    max-width: 600px;
    text-align: left;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
}

.welcome-hint h4 {
    color: var(--text);
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 600;
}

.welcome-hint ul {
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.welcome-hint .hint-section { display: none; }
.welcome-hint .hint-section.active { display: block; }

/* ===== MESSAGES ===== */
#messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px 0;
    display: none;
}

#messages.visible { display: block; }

.message-row {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    max-width: 860px;
    margin: 0 auto 12px;
    width: 100%;
    border-radius: 12px;
}

.message-row.user {
    background-color: var(--bg-message-user);
    align-self: flex-start;
    border: 1px solid #f0f0f0;
}

.message-row.bot {
    background-color: var(--bg-message-bot);	
	margin-bottom: 40px;
}

.message-row.system-schedule {
    background-color: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    font-size: 0.9em;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.message-time {
    font-weight: 400;
    opacity: 0.8;
}

.message-content {
    flex: 1;
    min-width: 0;
	position:relative;
}

.message-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    word-break: break-word;
}

/* Markdown стили на основе Manus */
.message-text p { margin-bottom: 1em; }
.message-text p:last-child { margin-bottom: 0; }

.message-text h1, .message-text h2, .message-text h3, .message-text h4 {
    margin: 1.5em 0 0.5em;
    font-weight: 600;
    line-height: 1.3;
    color: #111827;
}
.message-text h1 { font-size: 1.8em; border-bottom: 1px solid var(--border); padding-bottom: 0.3em; }
.message-text h2 { font-size: 1.5em; border-bottom: 1px solid var(--border); padding-bottom: 0.3em; }
.message-text h3 { font-size: 1.25em; }
.message-text h4 { font-size: 1.1em; }

.message-text ul, .message-text ol {
    padding-left: 1.5em;
    margin-bottom: 1em;
}
.message-text li { margin-bottom: 0.4em; }

.message-text code {
    background: #f3f4f6;
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.9em;
    color: #eb5757;
}

/* Блоки кода как в Manus */
.code-block-container {
    margin: 1em 0;
    border: 1px solid var(--border-main);
    border-radius: 8px;
    overflow: hidden;
    background: #f9fafb;
}
.code-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    background: #f3f4f6;
    border-bottom: 1px solid var(--border-main);
    font-size: 12px;
    color: var(--text-muted);
}
.message-text pre {
    margin: 0;
    padding: 16px;
    overflow-x: auto;
    background: transparent;
}
.message-text pre code {
    background: none;
    padding: 0;
    font-size: 13.5px;
    color: inherit;
    display: block;
    line-height: 1.5;
}

.message-text blockquote {
    border-left: 4px solid #e5e7eb;
    padding-left: 1em;
    color: #4b5563;
    font-style: italic;
    margin: 1em 0;
}

/* Таблицы как в Manus */
.message-text table {
    border-collapse: collapse;
    width: 100%;
    margin: 1em 0;
    font-size: 14px;
    border: 1px solid var(--border-main);
}
.message-text th, .message-text td {
    border: 1px solid var(--border-main);
    padding: 10px 14px;
    text-align: left;
}
.message-text th {
    background: #f9fafb;
    font-weight: 600;
    color: #111827;
}

/* Service Info */
.service-info-container {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.service-step {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}

.service-step .step-icon {
    flex-shrink: 0;
    width: 16px;
    text-align: center;
    font-size: 14px;
}

.service-step .step-text {
    flex: 1;
}

/* Accordion */
.service-accordion {
    margin-top: 5px;
    margin-bottom: 10px;
}

.service-accordion-header {
    background: transparent;
    padding: 0;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    user-select: none;
    font-weight: 400;
    transition: color 0.2s;
    text-decoration: underline;
    text-decoration-style: dashed;
    text-underline-offset: 3px;
}

.service-accordion-header:hover {
    color: var(--text);
    background: transparent;
}

.service-accordion-header::before {
    display: none;
}

.service-accordion.open .service-accordion-header::before {
    transform: none;
}

.service-accordion-content {
    display: none;
    padding: 10px 0;
    border-top: none;
    background: transparent;
}

.service-accordion.open .service-accordion-content {
    display: block;
}
.message-text tr:nth-child(even) {
    background: #fcfcfc;
}

.message-text a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ===== TYPING INDICATOR ===== */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 14px;
    padding: 4px 0;
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: bounce 1.2s infinite;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
}

/* ===== ERROR ===== */
.message-error {
    color: #dc2626;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fee2e2;
    padding: 10px;
    border-radius: 8px;
    margin-top: 8px;
}

/* ===== INPUT AREA ===== */
#input-area {
    padding: 16px 20px 24px;
    flex-shrink: 0;
}

.input-wrapper {
    max-width: 860px;
    margin: 0 auto;
    position: relative;
}

.mode-select-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.mode-select-row label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

#mode-select {
    background: #fff;
    border: 1px solid var(--border-input);
    color: var(--text);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s;
}

#mode-select:focus { border-color: var(--accent); }

.textarea-row {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    background: #fff;
    border: 1px solid var(--border-input);
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.textarea-row:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(16, 163, 127, 0.1);
}

#message-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 15px;
    resize: none;
    max-height: 200px;
    min-height: 24px;
    line-height: 1.5;
    font-family: inherit;
}

#message-input::placeholder { color: #9ca3af; }

#send-btn {
    background: var(--accent);
    border: none;
    border-radius: 8px;
    width: 34px;
    height: 34px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s;
}

#send-btn:hover { background: var(--accent-hover); }
#send-btn:disabled { background: #e5e7eb; cursor: not-allowed; }
#send-btn svg { color: white; }

#stop-btn {
    background: #000;
    border: none;
    border-radius: 8px;
    width: 34px;
    height: 34px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s;
}

#stop-btn:hover { background: #333; }
#stop-btn svg { color: white; }

.input-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 10px;
    text-align: center;
}

.hint-tooltip {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--text-muted);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 8px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 10;
}

.hint-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: var(--border) transparent transparent transparent;
}

/* ===== SETTINGS MENU ===== */
.settings-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

#settings-btn {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s, background 0.2s;
    color: var(--text-muted);
}

#settings-btn:hover {
    background: #f9fafb;
    transform: rotate(45deg);
    color: var(--text);
}

.settings-menu {
    position: absolute;
    bottom: 50px;
    right: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    width: 240px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    display: none;
    flex-direction: column;
    gap: 8px;
}

.settings-menu.visible {
    display: flex;
}

.settings-menu-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.settings-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
    padding: 4px 0;
}

.settings-option input {
    cursor: pointer;
}

.settings-menu-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

.settings-menu-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.settings-menu-field label {
    font-size: 11px;
    color: var(--text-muted);
}

.settings-menu-field input {
    padding: 6px 8px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 13px;
    width: 100%;
}

#tg-login {
    padding-right: 24px;
}

.tg-login-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.tg-status-dot {
    display: none;
    box-shadow: 1px 1px 7px rgb(77 129 9 / 68%);
    width: 10px;
    height: 10px;
    background-color: #10a37f;
    border-radius: 50%;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 2;
}

.tg-status-dot.active {
    display: block;
}

.settings-menu-hint {
    font-size: 11px;
    color: var(--text-muted);
}

.settings-menu-hint a {
    color: var(--accent);
    text-decoration: none;
}

.settings-menu-hint a:hover {
    text-decoration: underline;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.hint-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.15s;
    vertical-align: middle;
    margin-left: 10px;
}

.hint-btn:hover {
    background: rgba(0,0,0,0.05);
}

.hint-btn img {
    width: 20px;
    height: 20px;
}

/* ===== CONTEXT MENU ===== */
.context-menu {
    position: fixed;
    z-index: 10000;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 4px;
    width: 150px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
}

.context-menu-item {
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    color: var(--text);
    transition: background 0.15s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.context-menu-item:hover {
    background: #f3f4f6;
}

.context-menu-item.danger {
    color: #dc2626;
}

.context-menu-item.danger:hover {
    background: #fee2e2;
}
.subtle-grid {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.subtle-grid::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 388px;
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;

    --grid-line: color-mix(
            in oklab,
            oklch(0.9 0.008 92) 48%,
            transparent
    );

    background-image:
            linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
            linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
    background-size: 32px 32px;

    -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 80%);
    mask-image: linear-gradient(to bottom, black 0%, transparent 80%);
}