276 lines
3.7 KiB
CSS
276 lines
3.7 KiB
CSS
:root {
|
|
color: #172033;
|
|
background: #f4f6fa;
|
|
font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
}
|
|
|
|
button,
|
|
input,
|
|
textarea {
|
|
font: inherit;
|
|
}
|
|
|
|
button {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.app-shell {
|
|
min-height: 100vh;
|
|
padding: 24px;
|
|
}
|
|
|
|
.workspace {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.topbar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
margin-bottom: 18px;
|
|
}
|
|
|
|
.topbar-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
flex-wrap: wrap;
|
|
gap: 10px;
|
|
}
|
|
|
|
.eyebrow {
|
|
margin: 0 0 4px;
|
|
color: #f05a28;
|
|
font-size: 12px;
|
|
font-weight: 800;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
h1 {
|
|
margin: 0;
|
|
font-size: 28px;
|
|
}
|
|
|
|
.primary-action,
|
|
.secondary-action,
|
|
.icon-action {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
border-radius: 6px;
|
|
border: 0;
|
|
}
|
|
|
|
.primary-action {
|
|
min-height: 40px;
|
|
padding: 0 16px;
|
|
color: #fff;
|
|
background: #172033;
|
|
}
|
|
|
|
.primary-action:disabled {
|
|
opacity: 0.65;
|
|
cursor: wait;
|
|
}
|
|
|
|
.secondary-action {
|
|
min-height: 34px;
|
|
padding: 0 12px;
|
|
color: #172033;
|
|
background: #fff;
|
|
border: 1px solid #d8dee9;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.icon-action {
|
|
width: 30px;
|
|
height: 30px;
|
|
color: #596579;
|
|
background: #fff;
|
|
border: 1px solid #d8dee9;
|
|
}
|
|
|
|
.main-grid {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) 320px;
|
|
gap: 16px;
|
|
}
|
|
|
|
.source-pane {
|
|
display: grid;
|
|
gap: 12px;
|
|
}
|
|
|
|
.drop-zone {
|
|
display: grid;
|
|
grid-template-columns: auto auto 1fr auto;
|
|
align-items: center;
|
|
gap: 10px;
|
|
min-height: 68px;
|
|
padding: 14px;
|
|
border: 1px dashed #aab4c4;
|
|
border-radius: 8px;
|
|
background: #fff;
|
|
}
|
|
|
|
.drop-zone input {
|
|
display: none;
|
|
}
|
|
|
|
.drop-zone.is-dragging {
|
|
border-color: #f05a28;
|
|
background: #fff7f3;
|
|
}
|
|
|
|
.source-status {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
min-height: 38px;
|
|
padding: 0 4px;
|
|
color: #596579;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.field {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.field span,
|
|
.result-title {
|
|
font-size: 13px;
|
|
font-weight: 750;
|
|
}
|
|
|
|
input,
|
|
textarea,
|
|
.result-panel,
|
|
.image-preview {
|
|
border: 1px solid #d8dee9;
|
|
border-radius: 8px;
|
|
background: #fff;
|
|
}
|
|
|
|
input {
|
|
height: 42px;
|
|
padding: 0 12px;
|
|
}
|
|
|
|
textarea {
|
|
min-height: 390px;
|
|
padding: 14px;
|
|
resize: vertical;
|
|
line-height: 1.45;
|
|
}
|
|
|
|
.image-preview {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 220px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.image-preview img {
|
|
display: block;
|
|
max-width: 100%;
|
|
max-height: 340px;
|
|
object-fit: contain;
|
|
}
|
|
|
|
.result-panel {
|
|
padding: 16px;
|
|
min-height: 420px;
|
|
}
|
|
|
|
.result-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.muted {
|
|
color: #596579;
|
|
}
|
|
|
|
.error {
|
|
color: #b42318;
|
|
}
|
|
|
|
.result {
|
|
display: grid;
|
|
gap: 10px;
|
|
}
|
|
|
|
.source-chip {
|
|
display: inline-flex;
|
|
width: fit-content;
|
|
max-width: 100%;
|
|
padding: 4px 8px;
|
|
border-radius: 999px;
|
|
color: #596579;
|
|
background: #f4f6fa;
|
|
font-size: 12px;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.result a {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
color: #1e6bff;
|
|
font-weight: 700;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.spin {
|
|
animation: spin 0.8s linear infinite;
|
|
}
|
|
|
|
@keyframes spin {
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 860px) {
|
|
.app-shell {
|
|
padding: 16px;
|
|
}
|
|
|
|
.topbar {
|
|
align-items: flex-start;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.topbar-actions {
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
.main-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.drop-zone {
|
|
grid-template-columns: auto 1fr;
|
|
}
|
|
|
|
.drop-zone .secondary-action {
|
|
grid-column: 1 / -1;
|
|
justify-self: start;
|
|
}
|
|
}
|