first wokring prototype

This commit is contained in:
2026-06-10 04:10:02 +02:00
parent 50d779a537
commit 7491c0a1b4
90 changed files with 10799 additions and 1 deletions

162
src/styles/auth-gate.css Normal file
View File

@@ -0,0 +1,162 @@
/* Auth gate + titlebar/tenant/help hover refinements */
.public-shell {
grid-template-columns: 58px 1fr;
}
.public-main {
grid-template-rows: 64px 1fr;
}
.icon-rail.compact .brand-mark {
margin-top: 15px;
}
.public-content {
min-height: calc(100vh - 64px);
background:
radial-gradient(circle at 18% 18%, rgba(239, 107, 58, .13), transparent 24rem),
radial-gradient(circle at 78% 14%, rgba(126, 166, 197, .15), transparent 22rem),
var(--bg);
}
.public-landing {
min-height: calc(100vh - 64px);
display: grid;
place-items: center;
padding: 42px;
}
.public-card {
width: min(720px, 100%);
background: var(--panel);
border: 1px solid var(--line);
border-radius: var(--radius);
box-shadow: var(--shadow);
padding: 42px 48px;
}
.public-kicker {
color: var(--accent);
text-transform: uppercase;
font-weight: 800;
font-size: 13px;
letter-spacing: .08em;
margin-bottom: 14px;
}
.public-card h1 {
margin: 0;
max-width: 620px;
font-size: clamp(30px, 4vw, 46px);
line-height: 1.08;
color: var(--text-strong);
letter-spacing: -.035em;
}
.public-card p {
margin: 18px 0 0;
max-width: 560px;
color: var(--muted);
font-size: 17px;
line-height: 1.55;
}
.public-actions {
margin-top: 28px;
display: flex;
gap: 12px;
}
.public-footnote {
margin-top: 22px;
color: var(--muted);
font-size: 13px;
}
/* Tenant: no field border. Only Titlebar decides whether it is rendered/dropdown. */
.tenant-selector {
position: relative;
height: auto;
min-width: 0;
border: 0;
border-radius: 0;
background: transparent;
box-shadow: none;
padding: 0;
gap: 5px;
}
.tenant-name-button {
border: 0;
background: transparent;
color: var(--text-strong);
display: inline-flex;
align-items: center;
gap: 5px;
font: inherit;
font-weight: 700;
padding: 8px 10px;
margin: -8px -10px;
border-radius: 7px;
cursor: pointer;
transition: background-color .12s ease, color .12s ease, box-shadow .12s ease;
}
/* Help/account should feel button-like only on interaction. */
.titlebar-link,
.account-pill {
padding: 8px 10px;
margin: -8px -10px;
border-radius: 7px;
transition: background-color .12s ease, color .12s ease, box-shadow .12s ease;
cursor: pointer;
}
.tenant-name-button:hover,
.titlebar-link:hover,
.account-pill:hover,
.context-menu-wrap:focus-within .account-pill {
background: rgba(0,0,0,.055);
color: var(--text-strong);
box-shadow: inset 0 0 0 1px rgba(0,0,0,.04);
}
.dropdown-menu {
animation: dropdown-in .08s ease-out;
padding: 6px;
}
.dropdown-item {
border-radius: 6px;
transition: background-color .12s ease, color .12s ease;
}
.dropdown-item:hover,
.dropdown-item.active {
background: rgba(239, 107, 58, .10);
color: var(--text-strong);
}
.dropdown-item.active {
font-weight: 700;
}
.tenant-menu {
min-width: 230px;
}
.tenant-menu .dropdown-item {
justify-content: space-between;
}
@keyframes dropdown-in {
from {
opacity: 0;
transform: translateY(-3px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

5
src/styles/badges.css Normal file
View File

@@ -0,0 +1,5 @@
.status-badge { display: inline-flex; align-items: center; height: 24px; border-radius: 99px; padding: 0 9px; font-size: 12px; font-weight: 800; background: #e7e4df; color: #666; text-transform: uppercase; }
.status-ready, .status-sent, .status-appended { background: #d6eee9; color: #34796d; }
.status-warning, .status-needs-review, .status-pending { background: #ffedc6; color: #a06b00; }
.status-blocked, .status-failed, .status-failed-permanent { background: #f8d1cc; color: #b13e35; }
.status-queued, .status-sending { background: #d8e8f4; color: #386a90; }

View File

@@ -0,0 +1,741 @@
/* Campaign workspace data interfaces. Kept separate from layout.css so local sticky/table tweaks stay untouched. */
.workspace-data-page .card { margin-bottom: 18px; }
.workspace-heading .mono-small { margin-top: 8px; }
.alert.success { background: var(--success-bg); color: var(--success-text); margin-bottom: 12px; }
.alert.info { background: var(--info-bg); color: var(--info-text); margin-bottom: 12px; }
.small-note { font-size: 12px; }
.wizard-action-grid {
display: grid;
grid-template-columns: repeat(3, minmax(180px, 1fr));
gap: 14px;
}
.wizard-action-card {
min-height: 176px;
border: 1px solid var(--line);
border-radius: 6px;
background: var(--panel-soft);
padding: 16px;
display: flex;
flex-direction: column;
align-items: flex-start;
}
.wizard-action-card h3 {
margin: 0;
color: var(--text-strong);
font-size: 16px;
}
.wizard-action-card p {
margin: 8px 0 18px;
color: var(--muted);
line-height: 1.45;
}
.wizard-action-card a { margin-top: auto; text-decoration: none; }
.data-table-wrap { margin: 0; overflow-x: auto; }
.data-table th:nth-child(1), .data-table td:nth-child(1) { width: 76px; }
.data-table th:nth-child(2), .data-table td:nth-child(2) { min-width: 220px; }
.data-table th:nth-child(3), .data-table td:nth-child(3) { width: 120px; }
.data-table code {
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 12px;
color: #5d5a55;
white-space: pre-wrap;
}
.template-preview {
min-height: 260px;
max-height: 520px;
overflow: auto;
margin: 0;
white-space: pre-wrap;
color: var(--text);
background: var(--panel-soft);
border: 1px solid var(--line);
border-radius: 6px;
padding: 14px;
font: inherit;
line-height: 1.5;
}
.field-chip-list {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.field-chip {
display: inline-flex;
align-items: center;
min-height: 28px;
border: 1px solid var(--line);
border-radius: 999px;
background: var(--panel-soft);
padding: 4px 10px;
color: var(--text-strong);
font-size: 13px;
font-weight: 700;
}
@media (max-width: 1000px) {
.wizard-action-grid { grid-template-columns: 1fr; }
}
.locked-wizard-card { grid-template-columns: 1fr; }
.standalone-wizard-body { min-height: auto; }
/* Editable campaign data surfaces. */
.responsive-form-grid { align-items: start; }
.json-edit-block {
display: grid;
gap: 8px;
margin-top: 16px;
}
.json-edit-block textarea {
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
font-size: 12px;
line-height: 1.45;
color: #4d4944;
}
.danger-text { color: var(--danger-text); }
.page-bottom-actions {
justify-content: flex-end;
margin-top: 18px;
}
.section-mini-heading {
margin: 18px 0 8px;
font-size: 12px;
color: #6b6863;
letter-spacing: .04em;
text-transform: uppercase;
}
.template-editor-grid { grid-template-columns: minmax(420px, 1.4fr) minmax(320px, .8fr); }
.recipient-table-wrap,
.files-table .app-table-wrap { overflow-x: auto; }
.recipient-table th,
.recipient-table td,
.files-table th,
.files-table td { white-space: nowrap; }
.recipient-table code,
.files-table code {
white-space: pre-wrap;
font-size: 12px;
}
.placeholder-stack {
display: grid;
gap: 8px;
margin-top: 12px;
}
.placeholder-stack span {
display: block;
border: 1px dashed var(--line-dark);
border-radius: 6px;
background: var(--panel-soft);
padding: 10px 12px;
color: var(--muted);
font-weight: 700;
}
@media (max-width: 1100px) {
.template-editor-grid { grid-template-columns: 1fr; }
.form-grid.compact.responsive-form-grid { grid-template-columns: 1fr; }
}
/* Campaign data layout refinement. */
.campaign-data-stack {
display: grid;
gap: 18px;
}
.form-subsection {
display: grid;
gap: 12px;
border-top: 1px solid var(--line);
padding-top: 14px;
}
.form-subsection:first-child {
border-top: 0;
padding-top: 0;
}
.form-subsection h3,
.subsection-heading h3 {
margin: 0;
color: var(--text-strong);
font-size: 14px;
letter-spacing: .01em;
}
.subsection-heading.split {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.toggle-grid {
display: grid;
grid-template-columns: repeat(2, minmax(180px, 1fr));
gap: 8px 16px;
}
.mail-server-settings-grid {
display: grid;
grid-template-columns: repeat(2, minmax(280px, 1fr));
gap: 22px;
}
.mail-server-subsection {
border-top: 0;
padding-top: 0;
align-content: start;
}
.form-span-full {
grid-column: 1 / -1;
}
.toggle-span-full {
border: 1px solid var(--line);
border-radius: 8px;
background: var(--panel-soft);
padding: 10px 12px;
}
.compact-table-wrap {
margin-top: 8px;
}
.direct-attachment-table th:nth-child(1),
.direct-attachment-table td:nth-child(1) { width: 220px; }
.direct-attachment-table th:nth-child(3),
.direct-attachment-table td:nth-child(3) { width: 180px; }
.direct-attachment-table th:last-child,
.direct-attachment-table td:last-child { width: 96px; }
.table-action-cell {
text-align: right;
white-space: nowrap;
}
.empty-table-cell {
color: var(--muted);
font-size: 13px;
padding: 18px 14px !important;
text-align: center;
}
.field-editor-table th:nth-child(1),
.field-editor-table td:nth-child(1) { min-width: 80px; }
.field-editor-table th:nth-child(2),
.field-editor-table td:nth-child(2) { min-width: 80px; }
.field-editor-table th:nth-child(3),
.field-editor-table td:nth-child(3) { width: 140px; }
.field-editor-table th:nth-child(4),
.field-editor-table td:nth-child(4) { width: 175px; }
.field-editor-table th:nth-child(5),
.field-editor-table td:nth-child(5) { min-width: 80px; }
.field-editor-table th:nth-child(6),
.field-editor-table td:nth-child(6) { width: 205px; }
.field-editor-table th:last-child,
.field-editor-table td:last-child { width: 96px; }
.additional-global-values-table th:last-child,
.additional-global-values-table td:last-child { width: 96px; }
.schema-note {
margin-top: 12px;
}
.additional-global-values-table th:nth-child(1),
.additional-global-values-table td:nth-child(1) { width: 260px; }
@media (max-width: 1100px) {
.mail-server-settings-grid { grid-template-columns: 1fr; }
.toggle-grid { grid-template-columns: 1fr; }
}
/* Campaign workspace navigation and cross-section references. */
.section-link-primary {
margin-top: 2px;
font-weight: 700;
}
.campaign-settings-grid {
align-items: start;
}
.override-toggle-grid {
grid-template-columns: repeat(3, minmax(180px, 1fr));
}
.related-link-grid {
display: grid;
grid-template-columns: repeat(4, minmax(180px, 1fr));
gap: 12px;
}
.related-link-card {
display: grid;
gap: 6px;
min-height: 88px;
padding: 14px;
border: 1px solid var(--line);
border-radius: 12px;
background: var(--panel-soft);
color: inherit;
text-decoration: none;
transition: border-color .16s ease, transform .16s ease, background .16s ease;
}
.related-link-card:hover {
border-color: var(--accent-soft);
background: var(--panel);
transform: translateY(-1px);
}
.related-link-card span {
color: var(--muted);
font-size: 12px;
line-height: 1.45;
}
.compact-detail-list {
gap: 8px;
}
.global-values-preview {
margin-top: 14px;
}
.template-side-stack {
display: grid;
gap: 18px;
align-content: start;
}
.template-preview-box {
display: grid;
gap: 10px;
padding: 14px;
border: 1px solid var(--line);
border-radius: 12px;
background: var(--panel-soft);
}
.template-preview-box h3 {
margin: 0;
color: var(--text-strong);
font-size: 15px;
}
.template-preview-box pre {
margin: 0;
white-space: pre-wrap;
color: var(--text);
font-family: inherit;
font-size: 13px;
line-height: 1.55;
}
.attachment-base-grid {
margin-bottom: 16px;
}
@media (max-width: 1280px) {
.related-link-grid { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
.override-toggle-grid { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
}
@media (max-width: 780px) {
.related-link-grid,
.override-toggle-grid { grid-template-columns: 1fr; }
}
/* Campaign list and module shell refinements. */
.subsection-bottom-actions {
justify-content: flex-end;
margin-top: 12px;
}
.campaigns-page {
padding: 28px 34px;
}
.campaigns-page > .alert {
margin: 0 0 18px;
}
.campaigns-page .card {
border: 1px solid var(--line);
border-radius: var(--radius);
box-shadow: var(--shadow);
background: var(--panel);
overflow: visible;
}
.campaigns-page .card-header {
position: sticky;
top: 0;
z-index: 30;
min-height: 64px;
padding: 0 24px;
background: #fff;
border-bottom: 1px solid var(--line);
border-radius: var(--radius) var(--radius) 0 0;
box-shadow: 0 14px 18px -22px rgba(45, 43, 40, .75);
}
.campaigns-page .card-header::after {
left: 12px;
right: 12px;
}
.campaigns-page .card-body {
padding: 0;
}
.campaign-table-wrap {
margin: 0;
}
.campaign-table thead,
.campaign-table thead th {
top: 64px;
}
.campaign-table th:first-child,
.campaign-table td:first-child {
padding-left: 24px;
}
.campaign-table th:last-child,
.campaign-table td:last-child {
padding-right: 24px;
}
.module-workspace .section-sidebar {
padding-top: 18px;
}
.settings-dashboard-grid {
align-items: start;
}
.module-table th,
.module-table td {
white-space: nowrap;
}
.module-table td:first-child {
font-weight: 700;
color: var(--text-strong);
}
.module-big-number {
display: block;
color: var(--text-strong);
font-size: 24px;
line-height: 1.2;
margin-bottom: 8px;
}
.stacked-actions {
align-items: stretch;
flex-direction: column;
}
.stacked-actions .btn {
justify-content: center;
}
@media (max-width: 900px) {
.campaigns-page {
padding: 18px;
}
}
/* Module entry/detail pages (Templates, Files). */
.module-entry-page {
max-width: none;
}
.module-card-heading {
display: flex;
align-items: baseline;
gap: 0.75rem;
flex-wrap: wrap;
}
.module-card-heading h2 {
margin: 0;
font-size: 1.06rem;
}
.module-card-heading span {
color: var(--muted-text);
font-size: 0.78rem;
font-weight: 500;
}
.module-table-wrap {
width: 100%;
}
.module-entry-table th:last-child {
width: 1%;
}
.module-entry-table td {
vertical-align: middle;
}
.module-title-cell {
display: flex;
flex-direction: column;
gap: 0.18rem;
min-width: 15rem;
}
.module-title-cell strong {
color: var(--text);
font-size: 0.94rem;
font-weight: 700;
}
.module-title-cell span {
color: var(--muted-text);
font-size: 0.78rem;
line-height: 1.35;
}
.small-text {
font-size: 0.78rem;
}
.compact-chip-row {
gap: 0.28rem;
flex-wrap: nowrap;
}
.message-preview {
border: 1px solid var(--border);
border-radius: var(--radius-md);
background: var(--surface-subtle);
padding: 1rem;
}
.message-preview strong {
display: block;
margin-bottom: 0.85rem;
}
.message-preview pre {
margin: 0;
white-space: pre-wrap;
font-family: inherit;
color: var(--text);
line-height: 1.55;
}
@media (max-width: 980px) {
.module-entry-table {
min-width: 880px;
}
}
/* Campaign overview configuration shortcuts. */
.overview-config-grid {
display: grid;
grid-template-columns: repeat(3, minmax(220px, 1fr));
gap: 14px;
margin-bottom: 18px;
align-items: stretch;
}
.overview-config-card {
min-height: 218px;
border: 1px solid var(--line);
border-radius: 6px;
background: linear-gradient(#ffffff, var(--panel-soft));
box-shadow: 0 1px 2px rgba(38, 35, 30, .04);
padding: 16px;
display: grid;
grid-template-rows: 22px 44px 1fr 35px;
gap: 8px;
align-items: start;
height: 100%;
}
.overview-config-card h3 {
margin: 0;
color: var(--text-strong);
font-size: 16px;
line-height: 22px;
}
.overview-config-card p {
margin: 0;
color: var(--muted);
line-height: 1.45;
}
.overview-config-facts {
display: grid;
grid-template-rows: repeat(3, minmax(31px, auto));
gap: 0;
width: 100%;
margin: 0;
align-self: stretch;
}
.overview-config-facts div {
display: grid;
grid-template-columns: minmax(96px, .72fr) minmax(0, 1.28fr);
gap: 10px;
align-items: baseline;
min-height: 31px;
border-top: 1px solid var(--line);
padding-top: 8px;
}
.overview-config-facts dt {
color: var(--muted);
font-size: 11px;
font-weight: 800;
letter-spacing: .04em;
text-transform: uppercase;
}
.overview-config-facts dd {
margin: 0;
min-width: 0;
overflow: hidden;
color: var(--text-strong);
font-size: 13px;
font-weight: 700;
line-height: 1.35;
text-overflow: ellipsis;
white-space: nowrap;
}
.overview-config-actions {
display: flex;
flex-wrap: wrap;
justify-content: right;
align-self: end;
gap: 8px;
width: 100%;
}
.overview-config-actions a { text-decoration: none; }
.overview-summary-grid {
grid-template-columns: repeat(4, minmax(120px, 1fr));
}
@media (max-width: 1100px) {
.overview-config-grid,
.overview-summary-grid { grid-template-columns: 1fr; }
.overview-config-card { grid-template-rows: auto auto auto auto; }
}
/* Template editor refinements. */
.template-body-mode {
display: inline-flex;
gap: 4px;
width: fit-content;
border: 1px solid var(--line);
border-radius: 999px;
background: var(--panel-soft);
padding: 4px;
}
.template-body-mode button {
border: 0;
border-radius: 999px;
background: transparent;
color: var(--muted);
cursor: pointer;
font: inherit;
font-size: 13px;
font-weight: 700;
padding: 7px 12px;
}
.template-body-mode button.active {
background: #fff;
color: var(--text-strong);
box-shadow: 0 1px 3px rgba(0,0,0,.12);
}
.template-editor-actions {
justify-content: flex-end;
}
.field-chip-button {
cursor: pointer;
border-color: var(--line-dark);
}
.field-chip-button:hover,
.field-chip-button:focus-visible {
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(0,0,0,.09);
}
.field-chip-button.used {
background: var(--green-soft);
border-color: #78b7a9;
color: #2d685d;
}
.field-chip-button.undefined {
background: #fff1d0;
border-color: #d5a64a;
color: #7c5412;
}
.field-chip-namespace {
border-right: 1px solid rgba(0,0,0,.18);
color: var(--muted);
margin-right: 2px;
padding-right: 6px;
text-transform: uppercase;
font-size: 10px;
letter-spacing: .05em;
}
.template-preview-modal {
width: min(920px, 100%);
}
.template-preview-toolbar {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 18px;
margin-bottom: 16px;
}
.template-preview-toolbar p {
margin: 4px 0 0;
}
.template-preview-frame {
width: 100%;
min-height: 360px;
border: 1px solid var(--line);
border-radius: 8px;
background: #fff;
}
.template-action-dialog {
width: min(620px, 100%);
}
@media (max-width: 720px) {
.template-preview-toolbar {
display: grid;
}
}
/* Restored workspace layout rules removed by the template editor patch. */
.attachment-base-stack {
display: grid;
gap: 16px;
margin-bottom: 16px;
}
.attachment-base-grid {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(240px, .36fr);
gap: 18px;
align-items: end;
}
.attachment-base-toggle {
display: flex;
min-height: 44px;
align-items: center;
padding-bottom: 2px;
}
.campaign-settings-stack {
display: grid;
gap: 18px;
}
.campaign-identity-grid {
grid-template-columns: repeat(2, minmax(220px, 1fr));
}
.campaign-identity-grid .form-field:nth-child(3),
.campaign-identity-grid .form-field:nth-child(4) {
grid-column: 1 / -1;
}
.campaign-header-stack {
display: grid;
gap: 18px;
}
.campaign-header-grid,
.campaign-sender-grid {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(240px, .36fr);
gap: 18px;
align-items: end;
}
.campaign-header-toggle,
.campaign-sender-toggle {
display: flex;
min-height: 44px;
align-items: center;
padding-bottom: 2px;
}
.recipient-add-row td {
background: var(--panel-soft);
}
.recipient-add-row .email-address-input {
max-width: 720px;
}
.unsaved-changes-dialog {
max-width: 520px;
}
.unsaved-changes-actions {
justify-content: flex-end;
}
@media (max-width: 1100px) {
.campaign-header-grid,
.campaign-sender-grid,
.attachment-base-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
.campaign-identity-grid { grid-template-columns: 1fr; }
}

454
src/styles/components.css Normal file
View File

@@ -0,0 +1,454 @@
/* Shared application components: loading indicator, mail-address editor and toggle switch. */
.page-title-with-loader {
display: inline-flex;
align-items: center;
gap: 10px;
}
.loading-indicator {
display: inline-flex;
align-items: center;
justify-content: center;
width: 24px;
height: 24px;
vertical-align: middle;
}
.loading-indicator-sm { width: 22px; height: 22px; }
.loading-indicator-md { width: 30px; height: 30px; }
.loading-envelope {
position: relative;
display: inline-block;
width: 18px;
height: 13px;
border: 2px solid #8c8881;
border-radius: 3px;
background: rgba(255,255,255,.7);
animation: loading-envelope-float .74s ease-in-out infinite alternate;
}
.loading-envelope::before,
.loading-envelope::after {
content: "";
position: absolute;
top: 1px;
width: 10px;
height: 10px;
border-top: 2px solid #8c8881;
}
.loading-envelope::before {
left: 1px;
transform: rotate(36deg);
transform-origin: top left;
}
.loading-envelope::after {
right: 1px;
transform: rotate(-36deg);
transform-origin: top right;
}
@keyframes loading-envelope-float {
from { transform: translateY(0) rotate(-3deg); opacity: .62; }
to { transform: translateY(-2px) rotate(3deg); opacity: 1; }
}
.email-address-input {
display: grid;
gap: 10px;
}
.email-chip-list {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 8px;
min-height: 34px;
}
.email-chip {
display: inline-flex;
align-items: center;
gap: 7px;
max-width: 100%;
border: 1px solid #c9c5bd;
border-radius: 999px;
background: linear-gradient(#ffffff, #f2f1ef);
box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 1px 1px rgba(0,0,0,.05);
padding: 5px 8px 5px 11px;
color: var(--text-strong);
font-size: 13px;
line-height: 1.2;
}
.email-chip.invalid {
border-color: #c96b63;
background: #f6e3df;
color: #873c35;
}
.email-chip-main {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-weight: 700;
}
.email-chip-address {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: var(--muted);
font-size: 12px;
}
.email-chip-remove {
display: inline-flex;
align-items: center;
justify-content: center;
width: 18px;
height: 18px;
border: 0;
border-radius: 999px;
background: rgba(0,0,0,.08);
color: #57534d;
cursor: pointer;
font-size: 14px;
line-height: 1;
padding: 0;
}
.email-chip-remove:hover { background: rgba(0,0,0,.15); }
.email-chip-empty {
color: var(--muted);
font-size: 13px;
}
.email-address-hint {
margin-top: 8px;
color: var(--muted);
font-size: 12px;
line-height: 1.35;
}
.recipient-editor-table th:nth-child(2),
.recipient-editor-table td:nth-child(2) { min-width: 430px; }
.recipient-editor-table th:last-child,
.recipient-editor-table td:last-child { width: 92px; text-align: right; }
.recipient-field-input,
.recipient-attachments-input {
min-width: 150px;
font-size: 12px;
}
.recipient-attachments-input {
min-width: 260px;
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}
.card-title-node,
.card-heading-with-loader {
display: inline-flex;
align-items: center;
gap: 10px;
color: var(--text-strong);
font-weight: 800;
}
.card-heading-with-loader {
font-size: 18px;
}
/* Mail-style address editor: textarea surface + pills + add dialog. */
.email-address-editor {
position: relative;
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 7px;
min-height: 44px;
border: 1px solid var(--line);
border-radius: 8px;
background: #fff;
box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 1px 2px rgba(0,0,0,.035);
padding: 7px 8px;
}
.email-address-editor:focus-within {
border-color: #9bb7d3;
box-shadow: 0 0 0 3px rgba(82, 130, 177, .14), inset 0 1px 0 rgba(255,255,255,.8);
}
.email-address-editor.has-error {
border-color: #c96b63;
box-shadow: 0 0 0 3px rgba(201, 107, 99, .13);
}
.email-address-editor .email-chip-list {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 7px;
min-height: 0;
}
.email-address-textarea {
flex: 1 1 230px;
min-width: 190px;
min-height: 26px;
max-height: 96px;
border: 0;
border-radius: 0;
background: transparent;
box-shadow: none;
resize: none;
overflow: hidden;
padding: 4px 2px;
font: inherit;
line-height: 1.35;
}
.email-address-textarea:focus {
outline: none;
box-shadow: none;
}
.email-address-input.has-add-button .email-address-editor {
padding-right: 42px;
}
.email-address-plus {
position: absolute;
top: 8px;
right: 8px;
display: inline-flex;
align-items: center;
justify-content: center;
width: 28px;
height: 28px;
border: 1px solid #c7c2b8;
border-radius: 999px;
background: linear-gradient(#fff, #f0efec);
color: #4f4b46;
cursor: pointer;
font-size: 19px;
font-weight: 800;
line-height: 1;
padding: 0;
}
.email-address-plus:hover {
border-color: #aaa49a;
background: linear-gradient(#fff, #e9e7e3);
}
.email-address-popover {
position: absolute;
z-index: 12;
top: calc(100% + 7px);
right: 0;
width: min(360px, calc(100vw - 64px));
display: grid;
gap: 10px;
border: 1px solid var(--line-dark);
border-radius: 8px;
background: #fff;
box-shadow: var(--shadow-popover);
padding: 14px;
}
.email-address-popover h4 {
margin: 0;
color: var(--text-strong);
font-size: 15px;
}
.email-address-popover label {
display: grid;
gap: 5px;
color: var(--muted);
font-size: 12px;
font-weight: 700;
}
.email-address-popover input {
font-size: 14px;
}
.email-address-suggestions {
display: grid;
gap: 4px;
max-width: 560px;
border: 1px solid var(--line);
border-radius: 8px;
background: #fff;
box-shadow: 0 8px 24px rgba(0,0,0,.08);
padding: 6px;
}
.email-address-suggestions button {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 12px;
border: 0;
border-radius: 6px;
background: transparent;
color: var(--text-strong);
cursor: pointer;
padding: 7px 8px;
text-align: left;
}
.email-address-suggestions button:hover {
background: var(--panel-soft);
}
.email-address-suggestions small {
color: var(--muted);
}
.email-address-input.compact {
min-width: 420px;
}
.email-address-input.compact .email-address-editor {
min-height: 40px;
}
.email-address-input.compact .email-address-textarea {
flex-basis: 180px;
min-width: 150px;
}
.email-address-input.disabled .email-address-editor {
background: var(--panel-soft);
}
.email-address-input.disabled .email-address-plus,
.email-address-input.disabled .email-address-textarea,
.email-address-input.disabled .email-address-suggestions,
.email-address-input.disabled .email-address-popover {
display: none;
}
/* Bootstrap-like switch controls without importing Bootstrap. */
.toggle-switch-row {
display: flex;
align-items: center;
gap: 10px;
min-height: 42px;
color: var(--text);
cursor: pointer;
font-weight: 700;
}
.toggle-switch-row.disabled {
cursor: default;
opacity: .72;
}
.toggle-switch-input {
position: absolute;
width: 1px;
height: 1px;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
}
.toggle-switch-track {
position: relative;
flex: 0 0 auto;
width: 42px;
height: 24px;
border: 1px solid #aeb4bb;
border-radius: 999px;
background: #cfd4da;
box-shadow: inset 0 1px 2px rgba(0,0,0,.12);
transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.toggle-switch-thumb {
position: absolute;
top: 2px;
left: 2px;
width: 18px;
height: 18px;
border-radius: 999px;
background: #fff;
box-shadow: 0 1px 2px rgba(0,0,0,.22);
transition: transform .16s ease;
}
.toggle-switch-input:checked + .toggle-switch-track {
border-color: #0d6efd;
background: #0d6efd;
}
.toggle-switch-input:checked + .toggle-switch-track .toggle-switch-thumb {
transform: translateX(18px);
}
.toggle-switch-input:focus-visible + .toggle-switch-track {
box-shadow: 0 0 0 3px rgba(13,110,253,.2), inset 0 1px 2px rgba(0,0,0,.12);
}
.toggle-switch-input:disabled + .toggle-switch-track {
filter: grayscale(.15);
opacity: .7;
}
.toggle-switch-copy {
display: grid;
gap: 2px;
}
.toggle-switch-label {
color: var(--text-strong);
}
.toggle-switch-help {
color: var(--muted);
font-size: 12px;
font-weight: 500;
line-height: 1.3;
}
@media (max-width: 900px) {
.email-address-input.compact { min-width: 260px; }
.email-address-input.has-add-button .email-address-editor { padding-right: 39px; }
.email-address-popover {
left: 0;
right: auto;
width: min(340px, calc(100vw - 48px));
}
}
/* Reusable inline help markers for form labels and compact contextual hints. */
.field-label {
display: inline-flex;
align-items: center;
gap: 6px;
min-width: 0;
}
.field-label-text {
min-width: 0;
}
.inline-help {
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
flex: 0 0 auto;
outline: none;
}
.inline-help-mark {
display: inline-flex;
align-items: center;
justify-content: center;
width: 16px;
height: 16px;
border-radius: 999px;
color: #686560;
background: var(--line-dark);
font-size: 11px;
font-weight: 800;
line-height: 1;
}
.inline-help:focus-visible .inline-help-mark {
box-shadow: var(--focus-ring);
}
.inline-help-bubble {
position: absolute;
z-index: 40;
left: 50%;
bottom: calc(100% + 9px);
width: max-content;
max-width: min(320px, calc(100vw - 48px));
transform: translate(-50%, 3px);
border: 1px solid var(--line-dark);
border-radius: 7px;
background: var(--surface);
box-shadow: var(--shadow-popover);
color: var(--text);
font-size: 12px;
font-weight: 500;
line-height: 1.4;
padding: 9px 10px;
white-space: normal;
visibility: hidden;
opacity: 0;
pointer-events: none;
transition: opacity .14s ease .35s, transform .14s ease .35s, visibility 0s linear .49s;
}
.inline-help-bubble::after {
content: "";
position: absolute;
left: 50%;
top: 100%;
width: 9px;
height: 9px;
border-right: 1px solid var(--line-dark);
border-bottom: 1px solid var(--line-dark);
background: var(--surface);
transform: translate(-50%, -5px) rotate(45deg);
}
.inline-help:hover .inline-help-bubble,
.inline-help:focus-within .inline-help-bubble {
visibility: visible;
opacity: 1;
transform: translate(-50%, 0);
transition-delay: .35s, .35s, .35s;
}

12
src/styles/forms.css Normal file
View File

@@ -0,0 +1,12 @@
.form-grid { display: grid; gap: 18px; }
.form-grid.compact { grid-template-columns: 1fr 1fr; }
.form-field { display: grid; gap: 7px; }
.form-label { font-weight: 700; font-size: 13px; color: #6b6863; }
.form-help { font-size: 12px; color: var(--muted); }
input, select, textarea { border: 1px solid var(--line); border-radius: 5px; background: #fff; font: inherit; padding: 10px 12px; color: var(--text); width: 100%; box-shadow: inset 0 1px 2px rgba(0,0,0,.04); }
textarea { resize: vertical; }
.btn { border: 1px solid var(--line-dark); border-radius: 4px; padding: 9px 14px; font: inherit; font-weight: 700; cursor: pointer; background: #f8f8f7; color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.btn-primary { background: var(--green); border-color: #5aa99b; color: #fff; }
.btn-ghost { border-color: transparent; background: transparent; box-shadow: none; }
.btn-danger { background: var(--red); color: #fff; border-color: #c94d43; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

142
src/styles/layout.css Normal file
View File

@@ -0,0 +1,142 @@
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 58px 1fr; }
.icon-rail { background: var(--rail-bg); color: #c7c6c0; display: flex; flex-direction: column; align-items: center; min-height: 100vh; box-shadow: inset -1px 0 rgba(0,0,0,.35); z-index: 1000; }
.brand-mark { width: 34px; height: 34px; margin: 15px 0 14px; border-radius: 50%; background: conic-gradient(#ef6b3a 0 20%, #f2c66d 0 40%, #80b9b0 0 60%, #7e9fc0 0 80%, #56545f 0); color: transparent; font-size: 0; position: relative; }
.brand-mark::after { position: absolute;
top: 9px;
left: 9px;
width: 15px;
height: 15px;
border-radius: 50%;
content: "";
background-color: var(--rail-bg);
}
.icon-nav { width: 100%; display: flex; flex-direction: column; }
.icon-nav-item { height: 52px; display: grid; place-items: center; color: #a7a49f; border-left: 3px solid transparent; text-decoration: none; }
.icon-nav-item:hover, .icon-nav-item.active { background: var(--rail-bg-active); color: #fff; border-left-color: var(--accent); }
.icon-rail-bottom { margin-top: auto; padding: 20px 0; }
.app-main { min-width: 0; display: grid; grid-template-rows: 64px 51px 1fr; min-height: 100vh; }
.titlebar { background: #fbfbfa; border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 18px; gap: 36px; z-index: 100; box-shadow: 0px 0px 10px 0px darkgrey; }
.tenant-selector { height: 40px; min-width: 210px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; display: flex; align-items: center; padding: 0 12px; gap: 5px; box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(0,0,0,.05); }
.tenant-label, .tenant-caret, .muted { color: var(--muted); }
.titlebar-spacer { flex: 1; }
.titlebar-link, .account-pill { border: 0; background: transparent; display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font: inherit; }
.account-pill { color: var(--text); }
.api-mini { display: flex; gap: 6px; }
.api-mini input { width: 155px; height: 30px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 8px; }
.breadcrumb-bar { background: var(--bar); border-bottom: 1px solid var(--line-dark); display: flex; align-items: center; padding: 0 22px; box-shadow: 0px 0px 10px 0px darkgrey; z-index: 90; }
.breadcrumbs { display: flex; gap: 6px; text-transform: uppercase; font-weight: 700; font-size: 13px; color: #615f5c; }
.crumb { display: inline-flex; align-items: center; gap: 4px; }
.breadcrumb-actions { margin-left: auto; display: flex; gap: 10px; }
.ghost-button { border: 0; background: transparent; color: #77736d; font-weight: 700; }
.workspace { height: calc(100vh - 112px); display: grid; grid-template-columns: 198px 1fr; }
.section-sidebar { background: #c8c4bf; border-right: 1px solid var(--line-dark); padding: 18px 0; border-left: 3px solid #afada9; box-shadow: 0px 0px 10px 0px darkgrey; z-index: 80; }
.section-title { font-size: 12px; font-weight: 800; color: #7f7b75; padding: 0 22px 14px; letter-spacing: .06em; }
.section-title-lower { margin-top: 28px; }
.section-link { width: calc(100% + 3px); height: 48px; border: 0; padding: 0 22px; background: transparent; text-align: left; color: #686560; font: inherit; cursor: pointer; margin-left: -3px; }
.section-link:hover, .section-link.active { background: rgba(255,255,255,.35); color: #3e3e3f; }
.section-link.active { border-left: 3px solid var(--accent); font-weight: 700; }
.section-link.subtle { font-size: 13px; }
.workspace-content { overflow: auto; }
.content-pad { padding: 28px 34px; }
.page-heading { margin-bottom: 22px; }
.page-heading h1 { margin: 0; font-size: 26px; color: var(--text-strong); font-weight: 600; }
.page-heading p { margin: 6px 0 0; color: var(--muted); }
.page-heading.split { display: flex; align-items: center; justify-content: space-between; }
.panel, .card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: scroll; }
.card-header { min-height: 56px; padding: 0 24px; border-bottom: 1px solid var(--line); display: flex; align-items: center; background: var(--panel-header); border-top-left-radius: var(--radius); border-top-right-radius: var(--radius); }
.card-header h2 { margin: 0; font-size: 16px; color: var(--text-strong); }
.card-actions { margin-left: auto; }
.card-body { padding: 22px 24px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(140px, 1fr)); gap: 12px; margin-bottom: 18px; }
.metric-grid.inside { margin: 14px 0; }
.metric-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); border-top: 4px solid var(--line-dark); }
.metric-good { border-top-color: var(--green); } .metric-warning { border-top-color: var(--amber); } .metric-danger { border-top-color: var(--red); } .metric-info { border-top-color: var(--blue); }
.metric-label { color: var(--muted); font-size: 12px; text-transform: uppercase; font-weight: 800; letter-spacing: .05em; }
.metric-value { margin-top: 7px; font-size: 30px; color: var(--text-strong); font-weight: 700; }
.metric-detail { margin-top: 4px; color: var(--muted); font-size: 13px; }
.dashboard-grid, .settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.wizard-page { min-height: calc(100vh - 112px); display: grid; place-items: start center; padding: 42px; }
.wizard-card { width: min(980px, 100%); background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: var(--radius); display: grid; grid-template-columns: 290px 1fr; overflow: hidden; }
.wizard-body { background: var(--panel-soft); padding: 28px; min-height: 620px; }
.wizard-heading { display: flex; justify-content: space-between; margin-bottom: 18px; }
.wizard-heading h1 { margin: 0; }
.save-state { color: var(--green); font-size: 13px; font-weight: 700; }
.wizard-footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.stepper { list-style: none; padding: 22px 0; margin: 0; background: #f6f5f3; border-right: 1px solid var(--line); }
.step button { width: 100%; min-height: 72px; border: 0; background: transparent; display: flex; gap: 14px; text-align: left; padding: 12px 20px; color: #999; cursor: pointer; }
.step.active button { background: #fff; color: var(--text-strong); }
.step-number { width: 32px; height: 32px; border-radius: 50%; background: #d8d6d2; color: #fff; display: grid; place-items: center; font-weight: 800; flex: 0 0 auto; }
.step.active .step-number { background: var(--accent); }
.step small { display: block; margin-top: 3px; color: var(--muted); }
.step-intro h2 { margin: 0; color: var(--text-strong); }
.step-intro p { margin-top: 6px; color: var(--muted); }
.button-row { display: flex; gap: 10px; margin: 16px 0; flex-wrap: wrap; }
.alert { padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; }
.alert.warning { background: #ffe1a3; } .alert.danger { background: #f3c5be; }
.table-like { border: 1px solid var(--line); }
.table-row-link { display: grid; grid-template-columns: 1fr auto; text-decoration: none; color: var(--text); padding: 14px 16px; border-bottom: 1px solid var(--line); }
.table-row-link:hover { background: var(--panel-soft); }
.mono-small { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--muted); }
.code-panel { background: #292929; color: #f1f1f1; padding: 18px; border-radius: 4px; overflow: auto; }
@media (max-width: 900px) {
.api-mini { display: none; }
.workspace { grid-template-columns: 1fr; }
.section-sidebar { display: none; }
.wizard-card { grid-template-columns: 1fr; }
.metric-grid, .dashboard-grid, .settings-grid { grid-template-columns: 1fr; }
}
/* Layout additions: login, help dropdown, overlays */
.tenant-selector.disabled { opacity: .86; cursor: default; }
.context-menu-wrap { position: relative; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow-menu); padding: 8px; z-index: 5000; }
.dropdown-menu hr { border: 0; border-top: 1px solid var(--line); margin: 8px 0; }
.dropdown-item { width: 100%; min-height: 34px; border: 0; background: transparent; display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 4px; text-align: left; color: var(--text); font: inherit; text-decoration: none; cursor: pointer; }
.dropdown-item:hover { background: var(--panel-soft); color: var(--text-strong); }
.dropdown-item small { margin-left: auto; color: var(--muted); }
.account-menu { min-width: 260px; }
.account-menu-header { padding: 8px 9px 10px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.account-menu-header strong { display: block; color: var(--text-strong); }
.account-menu-header span { color: var(--muted); font-size: 13px; }
.overlay-backdrop { position: fixed; inset: 0; background: rgba(37,40,42,.38); display: grid; place-items: center; z-index: 9000; padding: 24px; }
.modal-panel { width: min(560px, 100%); max-height: calc(100vh - 48px); overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 24px 80px rgba(0,0,0,.26); }
.modal-header { min-height: 58px; display: flex; align-items: center; padding: 0 22px; border-bottom: 1px solid var(--line); }
.modal-header h2 { margin: 0; font-size: 18px; color: var(--text-strong); }
.modal-close { margin-left: auto; border: 0; background: transparent; font-size: 22px; line-height: 1; cursor: pointer; color: var(--muted); }
.modal-body { padding: 22px; }
.modal-footer { padding: 16px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; background: var(--panel-soft); }
.login-hint { background: #f6f5f3; border: 1px solid var(--line); padding: 10px 12px; border-radius: 4px; color: var(--muted); font-size: 13px; }
.help-panel-section { margin-bottom: 16px; }
.help-panel-section h3 { margin: 0 0 7px; color: var(--text-strong); }
.about-logo { width: 52px; height: 52px; border-radius: 50%; background: conic-gradient(#ef6b3a 0 20%, #f2c66d 0 40%, #80b9b0 0 60%, #7e9fc0 0 80%, #56545f 0); margin-bottom: 12px; }
.kbd { display: inline-flex; min-width: 22px; height: 22px; align-items: center; justify-content: center; border: 1px solid var(--line-dark); border-bottom-width: 2px; border-radius: 4px; padding: 0 6px; background: #fff; font-size: 12px; font-weight: 700; color: #666; }
.titlebar .tenant-selector strong { max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Campaign workspace polish */
.crumb-link { color: inherit; text-decoration: none; border-radius: 4px; padding: 4px 5px; margin: -4px -5px; }
.crumb-link:hover { background: rgba(255,255,255,.35); color: var(--text-strong); }
.compact-actions { margin: 0; align-items: center; }
.below-grid { margin-top: 18px; }
.detail-list { display: grid; gap: 12px; margin: 0; }
.detail-list div { display: grid; grid-template-columns: 145px minmax(0, 1fr); align-items: center; gap: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.detail-list div:last-child { border-bottom: 0; padding-bottom: 0; }
.detail-list dt { color: var(--muted); font-size: 12px; text-transform: uppercase; font-weight: 800; letter-spacing: .04em; }
.detail-list dd { margin: 0; min-width: 0; }
.next-action-card { border-left: 4px solid var(--blue); padding-left: 16px; }
.next-action-card h2 { margin: 0; color: var(--text-strong); font-size: 19px; }
.next-action-card p { margin: 8px 0 0; color: var(--muted); }
.next-action-good { border-left-color: var(--green); }
.next-action-warning { border-left-color: var(--amber); }
.next-action-info { border-left-color: var(--blue); }
.summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.summary-tile { background: var(--panel-soft); border: 1px solid var(--line); border-radius: 6px; padding: 14px; }
.summary-tile span { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; font-weight: 800; letter-spacing: .04em; }
.summary-tile strong { display: block; margin-top: 6px; color: var(--text-strong); font-size: 24px; }
.empty-state { min-height: 220px; display: grid; place-items: center; text-align: center; padding: 32px; }
.empty-state h2 { margin: 0; color: var(--text-strong); }
.empty-state p { max-width: 520px; margin: 8px auto 18px; color: var(--muted); }
@media (max-width: 900px) {
.page-heading.split { align-items: flex-start; flex-direction: column; }
.summary-grid, .detail-list div { grid-template-columns: 1fr; }
}

128
src/styles/tables.css Normal file
View File

@@ -0,0 +1,128 @@
/* Legacy mapping / rule tables used by early wizard surfaces. */
.mapping-table {
margin-top: 18px;
border: 1px solid var(--line);
border-radius: 6px;
overflow: hidden;
}
.mapping-header,
.mapping-row {
display: grid;
grid-template-columns: 1.3fr 1.3fr .8fr 1fr .6fr;
align-items: center;
}
.mapping-header {
background: var(--bar);
color: #6b6863;
font-size: 12px;
font-weight: 800;
text-transform: uppercase;
}
.mapping-header span,
.mapping-row span {
padding: 12px 14px;
border-right: 1px solid var(--line);
}
.mapping-row {
background: #fff;
border-top: 1px solid var(--line);
}
.attachment-rule-card {
margin: 18px 0;
background: #fff;
border: 1px solid var(--line);
border-radius: 6px;
padding: 18px;
}
.attachment-rule-header {
display: flex;
justify-content: space-between;
margin-bottom: 16px;
}
/* Application data tables, visually aligned with the SaaS-style reference table. */
.app-table-wrap {
margin: -22px -24px;
overflow-x: auto;
}
.app-table {
width: 100%;
border-collapse: collapse;
background: #fff;
}
.app-table thead {
background: var(--bar);
color: #625f5a;
font-size: 12px;
letter-spacing: .04em;
text-transform: uppercase;
}
.app-table th {
height: 40px;
padding: 0 16px;
border-right: 1px solid var(--line-dark);
font-weight: 800;
text-align: left;
white-space: nowrap;
}
.app-table th:last-child { border-right: 0; }
.app-table td {
min-height: 56px;
padding: 16px;
border-top: 1px solid var(--line);
vertical-align: middle;
}
.app-table tbody tr:hover { background: var(--panel-soft); }
.table-primary-link,
.table-action-link {
color: var(--text-strong);
font-weight: 800;
text-decoration: none;
}
.table-primary-link:hover,
.table-action-link:hover { text-decoration: underline; }
.table-subline {
margin-top: 4px;
color: var(--muted);
font-size: 13px;
}
/* Campaign list table; the containing card/sticky behavior lives in campaign-workspace.css. */
.campaign-table-wrap {
margin: 0;
overflow-x: auto;
overflow-y: visible;
}
.campaign-table {
table-layout: fixed;
}
.campaign-table thead tr {
box-shadow: 0 12px 16px -18px rgba(45, 43, 40, .8);
}
.campaign-table thead th {
background: var(--bar);
border-right: 1px solid var(--line-dark);
}
.campaign-table th:nth-child(1),
.campaign-table td:nth-child(1) { width: auto; min-width: 360px; }
.campaign-table th:nth-child(2),
.campaign-table td:nth-child(2) { width: 150px; }
.campaign-table th:nth-child(3),
.campaign-table td:nth-child(3) { width: 230px; }
.campaign-table th:nth-child(4),
.campaign-table td:nth-child(4) { width: 230px; }
.campaign-table th:nth-child(5),
.campaign-table td:nth-child(5) { width: 86px; text-align: right; }
.campaign-table td.updated-cell {
color: #696660;
font-size: 12px;
line-height: 1.35;
white-space: nowrap;
}
.campaign-table td.version-cell {
overflow: hidden;
font-size: 12px;
text-overflow: ellipsis;
white-space: nowrap;
}

50
src/styles/tokens.css Normal file
View File

@@ -0,0 +1,50 @@
:root {
--rail-bg: #25282a;
--rail-bg-active: #1c1e20;
--accent: #ef6b3a;
--accent-soft: rgba(239, 107, 58, .35);
--bg: #e9e7e4;
--bar: #d4d0ca;
--panel: #f7f6f4;
--panel-soft: #ffffff;
--panel-header: #ffffff;
--surface: #ffffff;
--surface-subtle: var(--panel-soft);
--line: #d6d2cc;
--line-dark: #bdb8b0;
--border: var(--line);
--text: #48494c;
--text-strong: #303135;
--muted: #8a8781;
--muted-text: var(--muted);
--green: #7bbcaf;
--amber: #f5c56c;
--red: #e06a5f;
--blue: #7ea6c5;
--success-bg: #d8eee8;
--success-text: #315f55;
--info-bg: #dce9f3;
--info-text: #365c76;
--danger-text: #a64840;
--focus-ring: 0 0 0 3px rgba(82, 130, 177, .14);
--shadow: 0 1px 2px rgba(0,0,0,.15), 0 10px 30px rgba(0,0,0,.04);
--shadow-menu: 0 16px 40px rgba(0,0,0,.18);
--shadow-popover: 0 3px 8px -3px rgba(0,0,0,.16);
--radius: 8px;
--radius-sm: 4px;
--radius-md: var(--radius);
--radius-lg: 12px;
--radius-pill: 999px;
--font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); }
a { color: inherit; }