Features: - AI-powered post generation from brand profiles - Image generation with templates - Content planning - Telegram publishing - Social profile analyzer - Community organization support - Markdown to HTML conversion for Telegram - Inline AI chat for post editing Deploy: - Add deployment scripts for Linux servers - Add PowerShell deploy script for Windows - Add Nginx and SSL setup scripts - Add backup and restore scripts
1210 lines
23 KiB
CSS
1210 lines
23 KiB
CSS
:root {
|
|
--bg: #f4f5f7;
|
|
--surface: #ffffff;
|
|
--border: #e2e5ea;
|
|
--border-strong: #d1d5db;
|
|
--text: #1f2328;
|
|
--text-muted: #4b5563;
|
|
--text-faint: #6b7280;
|
|
--accent: #2563eb;
|
|
--accent-hover: #1d4ed8;
|
|
--accent-soft: #eef2ff;
|
|
--accent-soft-border: #c7d2fe;
|
|
--accent-soft-hover: #e0e7ff;
|
|
--danger: #dc2626;
|
|
--danger-hover: #b91c1c;
|
|
--danger-text: #b91c1c;
|
|
--success-bg: #ecfdf3;
|
|
--success-border: #a7e3bb;
|
|
--success-text: #14532d;
|
|
--warn-bg: #fffbeb;
|
|
--warn-border: #fde68a;
|
|
--warn-text: #78350f;
|
|
--error-bg: #fef2f2;
|
|
--error-border: #f3b4b4;
|
|
--error-text: #7f1d1d;
|
|
--table-head: #f9fafb;
|
|
--badge-bg: #f3f4f6;
|
|
--badge-text: #374151;
|
|
--input-bg: #ffffff;
|
|
--published-surface: #fafefb;
|
|
color-scheme: light;
|
|
}
|
|
|
|
:root[data-theme="dark"] {
|
|
--bg: #0f172a;
|
|
--surface: #1e293b;
|
|
--border: #334155;
|
|
--border-strong: #475569;
|
|
--text: #e2e8f0;
|
|
--text-muted: #94a3b8;
|
|
--text-faint: #94a3b8;
|
|
--accent: #60a5fa;
|
|
--accent-hover: #93c5fd;
|
|
--accent-soft: #172554;
|
|
--accent-soft-border: #1e40af;
|
|
--accent-soft-hover: #1e3a8a;
|
|
--danger: #ef4444;
|
|
--danger-hover: #f87171;
|
|
--danger-text: #f87171;
|
|
--success-bg: #064e3b;
|
|
--success-border: #059669;
|
|
--success-text: #a7f3d0;
|
|
--warn-bg: #451a03;
|
|
--warn-border: #b45309;
|
|
--warn-text: #fde68a;
|
|
--error-bg: #450a0a;
|
|
--error-border: #991b1b;
|
|
--error-text: #fecaca;
|
|
--table-head: #243244;
|
|
--badge-bg: #334155;
|
|
--badge-text: #e2e8f0;
|
|
--input-bg: #0f172a;
|
|
--published-surface: #0b2e22;
|
|
color-scheme: dark;
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
:root:not([data-theme]) {
|
|
--bg: #0f172a;
|
|
--surface: #1e293b;
|
|
--border: #334155;
|
|
--border-strong: #475569;
|
|
--text: #e2e8f0;
|
|
--text-muted: #94a3b8;
|
|
--text-faint: #94a3b8;
|
|
--accent: #60a5fa;
|
|
--accent-hover: #93c5fd;
|
|
--accent-soft: #172554;
|
|
--accent-soft-border: #1e40af;
|
|
--accent-soft-hover: #1e3a8a;
|
|
--danger: #ef4444;
|
|
--danger-hover: #f87171;
|
|
--danger-text: #f87171;
|
|
--success-bg: #064e3b;
|
|
--success-border: #059669;
|
|
--success-text: #a7f3d0;
|
|
--warn-bg: #451a03;
|
|
--warn-border: #b45309;
|
|
--warn-text: #fde68a;
|
|
--error-bg: #450a0a;
|
|
--error-border: #991b1b;
|
|
--error-text: #fecaca;
|
|
--table-head: #243244;
|
|
--badge-bg: #334155;
|
|
--badge-text: #e2e8f0;
|
|
--input-bg: #0f172a;
|
|
--published-surface: #0b2e22;
|
|
color-scheme: dark;
|
|
}
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
transition: background-color 0.2s ease, color 0.2s ease;
|
|
}
|
|
|
|
a {
|
|
color: var(--accent);
|
|
text-decoration: none;
|
|
}
|
|
|
|
a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* === Sidebar === */
|
|
|
|
.sidebar {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 220px;
|
|
height: 100vh;
|
|
background: var(--surface);
|
|
border-right: 1px solid var(--border);
|
|
display: flex;
|
|
flex-direction: column;
|
|
z-index: 100;
|
|
overflow-y: auto;
|
|
transition: transform 0.25s ease, background-color 0.2s ease;
|
|
}
|
|
|
|
.sidebar-brand {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 20px 18px 16px;
|
|
font-weight: 700;
|
|
font-size: 1.1rem;
|
|
color: var(--text);
|
|
text-decoration: none;
|
|
border-bottom: 1px solid var(--border);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.sidebar-brand:hover {
|
|
text-decoration: none;
|
|
}
|
|
|
|
.sidebar-brand-icon {
|
|
width: 22px;
|
|
height: 22px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.sidebar-nav {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
padding: 12px 10px;
|
|
flex: 1;
|
|
}
|
|
|
|
.sidebar-link {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 9px 12px;
|
|
border-radius: 8px;
|
|
font-size: 0.9rem;
|
|
color: var(--text-muted);
|
|
text-decoration: none;
|
|
transition: background-color 0.15s ease, color 0.15s ease;
|
|
border: none;
|
|
background: none;
|
|
font: inherit;
|
|
cursor: pointer;
|
|
width: 100%;
|
|
text-align: left;
|
|
}
|
|
|
|
.sidebar-link svg {
|
|
width: 18px;
|
|
height: 18px;
|
|
flex-shrink: 0;
|
|
stroke-width: 1.8;
|
|
}
|
|
|
|
.sidebar-link:hover {
|
|
background: var(--accent-soft);
|
|
color: var(--accent);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.sidebar-link.active {
|
|
background: var(--accent-soft);
|
|
color: var(--accent);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.sidebar-divider {
|
|
height: 1px;
|
|
background: var(--border);
|
|
margin: 6px 12px;
|
|
}
|
|
|
|
.sidebar-footer {
|
|
padding: 10px;
|
|
border-top: 1px solid var(--border);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.sidebar-form {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.sidebar-toggle {
|
|
display: none;
|
|
position: fixed;
|
|
top: 14px;
|
|
left: 14px;
|
|
z-index: 200;
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 10px;
|
|
border: 1px solid var(--border);
|
|
background: var(--surface);
|
|
color: var(--text);
|
|
cursor: pointer;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: background-color 0.2s ease;
|
|
}
|
|
|
|
.sidebar-toggle svg {
|
|
width: 20px;
|
|
height: 20px;
|
|
}
|
|
|
|
.sidebar-toggle:hover {
|
|
background: var(--accent-soft);
|
|
}
|
|
|
|
.main-content {
|
|
margin-left: 220px;
|
|
max-width: 720px;
|
|
padding: 28px 24px 60px;
|
|
}
|
|
|
|
@media (max-width: 820px) {
|
|
.sidebar {
|
|
transform: translateX(-100%);
|
|
}
|
|
|
|
.sidebar.open {
|
|
transform: translateX(0);
|
|
box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.sidebar-toggle {
|
|
display: flex;
|
|
}
|
|
|
|
.main-content {
|
|
margin-left: 0;
|
|
padding: 60px 16px 40px;
|
|
}
|
|
}
|
|
|
|
.inline-form {
|
|
display: inline;
|
|
margin: 0;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 1.5rem;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
h2 {
|
|
font-size: 1.15rem;
|
|
margin-top: 28px;
|
|
}
|
|
|
|
.card {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: 10px;
|
|
padding: 16px 18px;
|
|
margin-bottom: 16px;
|
|
transition: background-color 0.2s ease, border-color 0.2s ease;
|
|
}
|
|
|
|
.card p {
|
|
margin: 6px 0;
|
|
}
|
|
|
|
.result {
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
.flash {
|
|
background: var(--success-bg);
|
|
border: 1px solid var(--success-border);
|
|
color: var(--success-text);
|
|
padding: 10px 14px;
|
|
border-radius: 8px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.errors {
|
|
background: var(--error-bg);
|
|
border: 1px solid var(--error-border);
|
|
color: var(--error-text);
|
|
padding: 10px 14px;
|
|
border-radius: 8px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.errors ul {
|
|
margin: 0;
|
|
padding-left: 18px;
|
|
}
|
|
|
|
.form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 14px;
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: 10px;
|
|
padding: 20px;
|
|
transition: background-color 0.2s ease, border-color 0.2s ease;
|
|
}
|
|
|
|
.form label {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
font-size: 0.9rem;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.form input,
|
|
.form select,
|
|
.form textarea {
|
|
font: inherit;
|
|
padding: 9px 11px;
|
|
border: 1px solid var(--border-strong);
|
|
border-radius: 8px;
|
|
background: var(--input-bg);
|
|
color: var(--text);
|
|
transition: background-color 0.2s ease, border-color 0.2s ease;
|
|
}
|
|
|
|
.form input:focus,
|
|
.form select:focus,
|
|
.form textarea:focus {
|
|
outline: 2px solid var(--accent);
|
|
outline-offset: 1px;
|
|
}
|
|
|
|
.form button,
|
|
.button-danger {
|
|
align-self: flex-start;
|
|
background: var(--accent);
|
|
color: #fff;
|
|
border: none;
|
|
padding: 10px 18px;
|
|
border-radius: 8px;
|
|
font: inherit;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.form button:hover {
|
|
background: var(--accent-hover);
|
|
}
|
|
|
|
.button-danger {
|
|
background: var(--danger);
|
|
}
|
|
|
|
.button-danger:hover {
|
|
background: var(--danger-hover);
|
|
}
|
|
|
|
.grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
gap: 12px;
|
|
}
|
|
|
|
.tile {
|
|
display: block;
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: 10px;
|
|
padding: 18px;
|
|
font-weight: 500;
|
|
color: var(--text);
|
|
transition: background-color 0.2s ease, border-color 0.2s ease;
|
|
}
|
|
|
|
.tile:hover {
|
|
border-color: var(--accent);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.tile-danger {
|
|
color: var(--danger-text);
|
|
}
|
|
|
|
.post-list {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.post-meta {
|
|
font-size: 0.85rem;
|
|
color: var(--text-faint);
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.post-content {
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
.table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: 10px;
|
|
overflow: hidden;
|
|
transition: background-color 0.2s ease, border-color 0.2s ease;
|
|
}
|
|
|
|
.table th,
|
|
.table td {
|
|
text-align: left;
|
|
padding: 10px 12px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.table th {
|
|
background: var(--table-head);
|
|
}
|
|
|
|
/* === Действия с постами / планом === */
|
|
|
|
.post-actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 10px;
|
|
margin-top: 12px;
|
|
}
|
|
|
|
.copy-btn {
|
|
background: var(--accent-soft);
|
|
color: var(--accent);
|
|
border: 1px solid var(--accent-soft-border);
|
|
border-radius: 8px;
|
|
padding: 7px 12px;
|
|
font: inherit;
|
|
font-size: 0.9rem;
|
|
cursor: pointer;
|
|
transition: background-color 0.2s ease, border-color 0.2s ease;
|
|
}
|
|
|
|
.copy-btn:hover {
|
|
background: var(--accent-soft-hover);
|
|
}
|
|
|
|
.button-link {
|
|
background: none;
|
|
border: none;
|
|
padding: 0;
|
|
font: inherit;
|
|
font-size: 0.9rem;
|
|
color: var(--accent);
|
|
cursor: pointer;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.button-link:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.button-link-danger {
|
|
color: var(--danger-text);
|
|
}
|
|
|
|
.post-notes {
|
|
margin-top: 10px;
|
|
padding-top: 10px;
|
|
border-top: 1px dashed var(--border);
|
|
font-size: 0.9rem;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.form-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
}
|
|
|
|
/* === Контент-план === */
|
|
|
|
.chips {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.chip {
|
|
padding: 6px 12px;
|
|
border-radius: 999px;
|
|
font-size: 0.85rem;
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
transition: background-color 0.2s ease, border-color 0.2s ease;
|
|
}
|
|
|
|
.chip-published {
|
|
background: var(--success-bg);
|
|
border-color: var(--success-border);
|
|
color: var(--success-text);
|
|
}
|
|
|
|
.chip-postponed {
|
|
background: var(--warn-bg);
|
|
border-color: var(--warn-border);
|
|
color: var(--warn-text);
|
|
}
|
|
|
|
.plan-item-head {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 10px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.plan-day {
|
|
font-weight: 600;
|
|
}
|
|
|
|
.plan-platform {
|
|
font-size: 0.9rem;
|
|
color: var(--text-faint);
|
|
}
|
|
|
|
.plan-idea {
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
.status-badge {
|
|
font-size: 0.8rem;
|
|
padding: 3px 10px;
|
|
border-radius: 999px;
|
|
background: var(--badge-bg);
|
|
color: var(--badge-text);
|
|
}
|
|
|
|
.status-badge.status-published {
|
|
background: var(--success-bg);
|
|
color: var(--success-text);
|
|
}
|
|
|
|
.status-badge.status-postponed {
|
|
background: var(--warn-bg);
|
|
color: var(--warn-text);
|
|
}
|
|
|
|
.plan-item.status-published {
|
|
background: var(--published-surface);
|
|
}
|
|
|
|
.status-select {
|
|
font: inherit;
|
|
font-size: 0.9rem;
|
|
padding: 6px 8px;
|
|
border: 1px solid var(--border-strong);
|
|
border-radius: 8px;
|
|
background: var(--input-bg);
|
|
color: var(--text);
|
|
}
|
|
|
|
/* === Медиа-библиотека === */
|
|
|
|
.media-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
|
|
gap: 16px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.media-card {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: 10px;
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
transition: background-color 0.2s ease, border-color 0.2s ease;
|
|
}
|
|
|
|
.media-card a.media-link {
|
|
display: block;
|
|
line-height: 0;
|
|
}
|
|
|
|
.media-thumb {
|
|
width: 100%;
|
|
aspect-ratio: 1 / 1;
|
|
object-fit: cover;
|
|
background: var(--table-head);
|
|
display: block;
|
|
}
|
|
|
|
.media-body {
|
|
padding: 10px 12px 12px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
}
|
|
|
|
.media-prompt {
|
|
font-size: 0.9rem;
|
|
line-height: 1.35;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.form-hint {
|
|
font-size: 0.85rem;
|
|
color: var(--text-faint);
|
|
margin: 0;
|
|
}
|
|
|
|
/* === Опрос медиа-образа === */
|
|
|
|
.survey-wizard {
|
|
max-width: 760px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.survey-progress {
|
|
height: 6px;
|
|
background: var(--border);
|
|
border-radius: 999px;
|
|
overflow: hidden;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.survey-progress-bar {
|
|
height: 100%;
|
|
background: var(--accent);
|
|
width: 0%;
|
|
transition: width 0.3s ease;
|
|
border-radius: 999px;
|
|
}
|
|
|
|
.survey-steps-indicator {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.step-dot {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: 50%;
|
|
font-size: 0.8rem;
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
color: var(--text-faint);
|
|
cursor: pointer;
|
|
transition: background-color 0.2s, border-color 0.2s, color 0.2s;
|
|
}
|
|
|
|
.step-dot.active {
|
|
background: var(--accent);
|
|
border-color: var(--accent);
|
|
color: #fff;
|
|
}
|
|
|
|
.step-dot.done {
|
|
background: var(--success-bg);
|
|
border-color: var(--success-border);
|
|
color: var(--success-text);
|
|
}
|
|
|
|
.survey-step h2 {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.survey-step h3 {
|
|
font-size: 1rem;
|
|
margin-top: 18px;
|
|
margin-bottom: 8px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.survey-step .form {
|
|
gap: 10px;
|
|
}
|
|
|
|
.funnel-stage {
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
padding: 12px;
|
|
margin-bottom: 10px;
|
|
background: var(--bg);
|
|
}
|
|
|
|
.funnel-stage label {
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.survey-nav {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
margin-top: 20px;
|
|
padding: 16px 0;
|
|
}
|
|
|
|
.survey-nav #stepCounter {
|
|
font-size: 0.9rem;
|
|
color: var(--text-faint);
|
|
}
|
|
|
|
.survey-nav button {
|
|
background: var(--accent);
|
|
color: #fff;
|
|
border: none;
|
|
padding: 10px 18px;
|
|
border-radius: 8px;
|
|
font: inherit;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.survey-nav button:hover {
|
|
background: var(--accent-hover);
|
|
}
|
|
|
|
.survey-nav button:disabled {
|
|
opacity: 0.6;
|
|
cursor: default;
|
|
}
|
|
|
|
#channelsTable input {
|
|
width: 100%;
|
|
padding: 6px 8px;
|
|
border: 1px solid var(--border-strong);
|
|
border-radius: 6px;
|
|
background: var(--input-bg);
|
|
color: var(--text);
|
|
font: inherit;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
/* === Изображения в списке постов === */
|
|
|
|
.post-images {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
margin-top: 12px;
|
|
}
|
|
|
|
.post-thumb {
|
|
width: 80px;
|
|
height: 80px;
|
|
object-fit: cover;
|
|
border-radius: 8px;
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
/* === Loader / Background Task === */
|
|
|
|
.task-loader {
|
|
display: none;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 16px;
|
|
padding: 40px 20px;
|
|
text-align: center;
|
|
}
|
|
|
|
.spinner {
|
|
width: 44px;
|
|
height: 44px;
|
|
border: 4px solid var(--border);
|
|
border-top-color: var(--accent);
|
|
border-radius: 50%;
|
|
animation: spin 0.8s linear infinite;
|
|
}
|
|
|
|
@keyframes spin {
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
.task-loader-text {
|
|
font-size: 1rem;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.task-loader-sub {
|
|
font-size: 0.85rem;
|
|
color: var(--text-faint);
|
|
}
|
|
|
|
.task-error {
|
|
display: none;
|
|
background: var(--error-bg);
|
|
border: 1px solid var(--error-border);
|
|
color: var(--error-text);
|
|
padding: 12px 16px;
|
|
border-radius: 8px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.task-result {
|
|
display: none;
|
|
}
|
|
|
|
/* === Image Templates === */
|
|
|
|
.template-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
|
|
gap: 10px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.template-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 14px 10px 12px;
|
|
border: 2px solid var(--border);
|
|
border-radius: 12px;
|
|
background: var(--surface);
|
|
cursor: pointer;
|
|
text-align: center;
|
|
transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.1s ease;
|
|
font: inherit;
|
|
}
|
|
|
|
.template-card:hover {
|
|
border-color: var(--accent);
|
|
background: var(--accent-soft);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.template-card.selected {
|
|
border-color: var(--accent);
|
|
background: var(--accent-soft);
|
|
box-shadow: 0 0 0 3px var(--accent-soft-border);
|
|
}
|
|
|
|
.template-icon {
|
|
font-size: 1.6rem;
|
|
line-height: 1;
|
|
}
|
|
|
|
.template-name {
|
|
font-weight: 600;
|
|
font-size: 0.9rem;
|
|
color: var(--text);
|
|
}
|
|
|
|
.template-hint {
|
|
font-size: 0.75rem;
|
|
color: var(--text-faint);
|
|
line-height: 1.3;
|
|
}
|
|
|
|
.template-card-custom {
|
|
border-style: dashed;
|
|
}
|
|
|
|
.selected-hint {
|
|
background: var(--accent-soft);
|
|
border: 1px solid var(--accent-soft-border);
|
|
border-radius: 8px;
|
|
padding: 10px 14px;
|
|
font-size: 0.9rem;
|
|
color: var(--accent);
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
/* === Concept Cards === */
|
|
|
|
.concept-grid {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.concept-card {
|
|
display: block;
|
|
width: 100%;
|
|
text-align: left;
|
|
padding: 14px 16px;
|
|
border: 2px solid var(--border);
|
|
border-radius: 12px;
|
|
background: var(--surface);
|
|
cursor: pointer;
|
|
font: inherit;
|
|
transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.1s ease;
|
|
}
|
|
|
|
.concept-card:hover {
|
|
border-color: var(--accent);
|
|
background: var(--accent-soft);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.concept-title {
|
|
font-weight: 600;
|
|
font-size: 1rem;
|
|
color: var(--text);
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.concept-desc {
|
|
font-size: 0.9rem;
|
|
color: var(--text-muted);
|
|
line-height: 1.4;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.concept-meta {
|
|
display: flex;
|
|
gap: 6px;
|
|
}
|
|
|
|
.concept-tag {
|
|
display: inline-block;
|
|
padding: 2px 8px;
|
|
border-radius: 999px;
|
|
font-size: 0.75rem;
|
|
background: var(--badge-bg);
|
|
color: var(--badge-text);
|
|
}
|
|
|
|
/* === Provider Tabs === */
|
|
.provider-tabs {
|
|
display: flex;
|
|
gap: 0;
|
|
border-bottom: 2px solid var(--border);
|
|
margin-bottom: 20px;
|
|
}
|
|
.provider-tab {
|
|
padding: 10px 20px;
|
|
background: none;
|
|
border: none;
|
|
border-bottom: 2px solid transparent;
|
|
margin-bottom: -2px;
|
|
font-size: 15px;
|
|
font-weight: 500;
|
|
color: var(--text-muted);
|
|
cursor: pointer;
|
|
transition: color 0.15s, border-color 0.15s;
|
|
}
|
|
.provider-tab:hover {
|
|
color: var(--text);
|
|
}
|
|
.provider-tab.active {
|
|
color: var(--accent);
|
|
border-bottom-color: var(--accent);
|
|
}
|
|
.provider-tab-content {
|
|
display: none;
|
|
}
|
|
.provider-tab-content.active {
|
|
display: block;
|
|
}
|
|
|
|
/* === Inline Post Editor === */
|
|
|
|
.post-editor {
|
|
width: 100%;
|
|
min-height: 200px;
|
|
padding: 14px 16px;
|
|
font-family: inherit;
|
|
font-size: 0.95rem;
|
|
line-height: 1.6;
|
|
color: var(--text);
|
|
background: var(--bg);
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
resize: vertical;
|
|
transition: border-color 0.2s;
|
|
}
|
|
.post-editor:focus {
|
|
outline: none;
|
|
border-color: var(--accent);
|
|
box-shadow: 0 0 0 3px var(--accent-bg);
|
|
}
|
|
.post-editor-actions {
|
|
display: flex;
|
|
gap: 10px;
|
|
margin-top: 12px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.task-success {
|
|
background: var(--success-bg, #d4edda);
|
|
color: var(--success-text, #155724);
|
|
border: 1px solid var(--success-border, #c3e6cb);
|
|
border-radius: 8px;
|
|
padding: 8px 14px;
|
|
margin-bottom: 10px;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
/* === Revision Chat === */
|
|
|
|
.revision-chat {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
.revision-msg {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: 10px;
|
|
padding: 12px 16px;
|
|
cursor: pointer;
|
|
transition: border-color 0.2s, background 0.15s;
|
|
}
|
|
.revision-msg:hover {
|
|
border-color: var(--accent);
|
|
background: var(--accent-bg);
|
|
}
|
|
.revision-msg--current {
|
|
border-color: var(--accent);
|
|
border-width: 2px;
|
|
}
|
|
.revision-msg-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 6px;
|
|
}
|
|
.revision-msg-label {
|
|
font-weight: 600;
|
|
font-size: 0.85rem;
|
|
color: var(--accent);
|
|
}
|
|
.revision-msg-date {
|
|
font-size: 0.78rem;
|
|
color: var(--text-muted);
|
|
}
|
|
.revision-msg-preview {
|
|
font-size: 0.88rem;
|
|
color: var(--text-muted);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
.revision-msg-full {
|
|
margin-top: 8px;
|
|
}
|
|
.revision-msg-content {
|
|
background: var(--bg);
|
|
border: 1px solid var(--border);
|
|
border-radius: 6px;
|
|
padding: 12px;
|
|
font-family: inherit;
|
|
font-size: 0.9rem;
|
|
line-height: 1.6;
|
|
white-space: pre-wrap;
|
|
word-wrap: break-word;
|
|
max-height: 400px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
/* === AI Chat === */
|
|
|
|
.ai-chat {
|
|
max-height: 500px;
|
|
overflow-y: auto;
|
|
padding: 10px 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
.ai-chat-msg {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
.ai-chat-msg--user {
|
|
align-items: flex-end;
|
|
}
|
|
.ai-chat-msg--ai {
|
|
align-items: flex-start;
|
|
}
|
|
.ai-chat-msg--system {
|
|
align-items: center;
|
|
}
|
|
.ai-chat-bubble {
|
|
max-width: 85%;
|
|
padding: 10px 16px;
|
|
border-radius: 14px;
|
|
font-size: 0.9rem;
|
|
line-height: 1.5;
|
|
word-wrap: break-word;
|
|
white-space: pre-wrap;
|
|
}
|
|
.ai-chat-bubble--user {
|
|
background: var(--accent);
|
|
color: #fff;
|
|
border-bottom-right-radius: 4px;
|
|
}
|
|
.ai-chat-bubble--ai {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-bottom-left-radius: 4px;
|
|
}
|
|
.ai-chat-bubble--system {
|
|
background: var(--bg);
|
|
color: var(--text-muted);
|
|
font-size: 0.85rem;
|
|
border: 1px dashed var(--border);
|
|
}
|
|
.ai-chat-time {
|
|
font-size: 0.72rem;
|
|
color: var(--text-faint);
|
|
margin-top: 3px;
|
|
padding: 0 4px;
|
|
}
|
|
.ai-chat-meta {
|
|
font-size: 0.8rem;
|
|
color: var(--text-muted);
|
|
margin-bottom: 4px;
|
|
}
|
|
.ai-chat-preview {
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
max-width: 100%;
|
|
}
|
|
.ai-chat-full pre {
|
|
background: var(--bg);
|
|
border: 1px solid var(--border);
|
|
border-radius: 6px;
|
|
padding: 10px;
|
|
font-family: inherit;
|
|
font-size: 0.88rem;
|
|
line-height: 1.5;
|
|
white-space: pre-wrap;
|
|
word-wrap: break-word;
|
|
max-height: 300px;
|
|
overflow-y: auto;
|
|
}
|
|
.ai-chat-input {
|
|
display: flex;
|
|
gap: 8px;
|
|
align-items: flex-end;
|
|
margin-top: 12px;
|
|
}
|
|
.ai-chat-textarea {
|
|
flex: 1;
|
|
padding: 10px 14px;
|
|
font-family: inherit;
|
|
font-size: 0.9rem;
|
|
line-height: 1.4;
|
|
color: var(--text);
|
|
background: var(--bg);
|
|
border: 1px solid var(--border);
|
|
border-radius: 10px;
|
|
resize: none;
|
|
transition: border-color 0.2s;
|
|
}
|
|
.ai-chat-textarea:focus {
|
|
outline: none;
|
|
border-color: var(--accent);
|
|
}
|
|
.ai-chat-textarea:disabled {
|
|
opacity: 0.5;
|
|
}
|