stylo-studio / frontend /src /styles.css
rdisipio's picture
wip
4350fef unverified
@import url("https://fonts.googleapis.com/css2?family=Literata:opsz,wght@7..72,400;7..72,600;7..72,700&family=Source+Sans+3:wght@400;500;600;700&display=swap");
:root {
--bg: #f2f1ec;
--paper: #fdfcf8;
--ink: #1b1f24;
--muted: #56606d;
--line: #d8d4c8;
--accent: #0f5e87;
--accent-soft: #dceaf2;
--success: #0f6e47;
--danger: #bf3c2a;
--shadow: 0 8px 22px rgba(10, 18, 28, 0.06);
}
* {
box-sizing: border-box;
}
body {
margin: 0;
background: radial-gradient(circle at top left, #f8f6f0, var(--bg) 42%);
color: var(--ink);
font-family: "Source Sans 3", sans-serif;
}
.app-shell {
min-height: 100vh;
padding: 28px 18px 40px;
}
.canvas {
margin: 0 auto;
max-width: min(1400px, 96vw);
}
.masthead {
align-items: flex-start;
display: flex;
gap: 20px;
justify-content: space-between;
margin-bottom: 18px;
}
.masthead-copy {
max-width: 760px;
}
.eyebrow {
color: var(--accent);
font-size: 13px;
font-weight: 700;
letter-spacing: 0.08em;
margin: 0 0 6px;
text-transform: uppercase;
}
.masthead h3 {
font-family: "Literata", serif;
font-size: clamp(30px, 3.1vw, 44px);
font-weight: 700;
letter-spacing: -0.02em;
line-height: 1.06;
margin: 0;
}
.title-italic {
font-style: italic;
font-weight: 400;
}
.title-bold {
font-style: normal;
font-weight: 700;
}
.deck {
color: var(--muted);
font-size: 17px;
line-height: 1.45;
margin: 10px 0 0;
}
.foundation-badge {
align-items: center;
background: var(--paper);
border: 1px solid var(--line);
border-radius: 10px;
color: inherit;
cursor: pointer;
display: flex;
gap: 10px;
max-width: 360px;
padding: 8px;
text-decoration: none;
transition: transform 120ms ease, box-shadow 120ms ease;
}
.foundation-badge:hover {
box-shadow: 0 10px 24px rgba(10, 18, 28, 0.1);
transform: translateY(-1px);
}
.foundation-logo {
border-radius: 6px;
display: block;
height: 56px;
object-fit: cover;
width: 56px;
}
.foundation-text {
color: var(--muted);
font-size: 13px;
line-height: 1.35;
margin: 0;
}
.notice {
border-radius: 11px;
margin: 10px 0;
padding: 10px 12px;
}
.submit-success-row {
align-items: center;
display: flex;
gap: 14px;
justify-content: space-between;
}
.workspace-grid {
display: grid;
gap: 14px;
grid-template-columns: minmax(340px, 1fr) minmax(480px, 1.6fr);
}
.panel {
background: var(--paper);
border: 1px solid var(--line);
border-radius: 12px;
box-shadow: var(--shadow);
}
.section-title {
font-family: "Literata", serif;
font-size: 18px;
font-weight: 600;
line-height: 1.3;
margin: 0 0 12px;
}
.actions-row {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-top: 14px;
}
.settings-grid {
display: grid;
gap: 10px;
grid-template-columns: 1fr 1fr;
margin-top: 12px;
}
.setting-item {
color: var(--muted);
display: flex;
flex-direction: column;
font-size: 13px;
font-weight: 600;
gap: 6px;
}
.setting-item .actions-row {
margin-top: 0;
}
textarea[readonly] {
color: var(--ink);
}
.setting-item input {
border: 1px solid var(--line);
border-radius: 8px;
color: var(--ink);
font-size: 14px;
min-height: 36px;
padding: 6px 8px;
}
.advanced-toggle {
background: transparent;
border: 0;
color: var(--muted);
cursor: pointer;
display: flex;
font-size: 13px;
font-weight: 600;
gap: 5px;
margin-top: 14px;
padding: 0;
}
.advanced-toggle:hover {
color: var(--ink);
}
.advanced-toggle-chevron {
display: inline-block;
font-style: normal;
transform: rotate(0deg);
transition: transform 150ms ease;
}
.advanced-toggle-chevron--open {
transform: rotate(90deg);
}
.result-header {
align-items: center;
display: flex;
justify-content: space-between;
margin-bottom: 6px;
}
.result-header-actions {
align-items: center;
display: flex;
gap: 8px;
}
.staged-chip {
background: var(--accent-soft);
border-radius: 999px;
color: var(--accent);
font-size: 12px;
font-weight: 700;
padding: 4px 10px;
}
.staged-chip-override {
background: #e6f4ea;
color: #1e7e34;
}
.placeholder-text {
color: var(--muted);
margin: 0;
}
.output-block {
border-top: 1px solid var(--line);
margin-top: 14px;
padding-top: 12px;
}
.summary-text {
line-height: 1.72;
margin: 0;
}
.paragraph-preview {
line-height: 1.72;
margin: 0;
white-space: pre-wrap;
}
.edited-sentence-bold {
font-weight: 700;
}
.sentence-button {
background: transparent;
border: 0;
border-radius: 3px;
color: inherit;
cursor: pointer;
display: inline;
font: inherit;
margin: 0;
padding: 0 1px;
text-align: left;
transition: background-color 120ms ease;
}
.sentence-interactive {
border-radius: 4px;
cursor: pointer;
padding: 1px 2px;
transition: background-color 120ms ease;
}
.sentence-button:hover .sentence-interactive {
background-color: rgba(15, 94, 135, 0.1);
}
.uncertain-underline-mid,
.uncertain-underline-high {
text-decoration-line: underline;
text-decoration-style: wavy;
text-underline-offset: 3px;
}
.uncertain-underline-mid {
text-decoration-color: #137cbd;
}
.uncertain-underline-high {
text-decoration-color: #d33a2c;
}
.uncertainty-tooltip {
white-space: nowrap;
}
.tooltip-strong {
font-weight: 700;
}
.tooltip-ai-band {
opacity: 0.55;
}
.muted {
color: var(--muted);
}
.error-text {
background: #fbe9e4;
color: var(--danger);
}
.success-text {
background: #e6f4eb;
color: var(--success);
}
.info-text {
background: #e8f0fb;
color: #1a56a0;
}
.warning-text {
background: #fef3cd;
color: #7d5a00;
}
.cards-pane {
margin-top: 14px;
}
.cards-section {
display: grid;
gap: 10px;
}
.editorial-card {
border: 1px solid var(--line);
border-left: 4px solid #adb6c2;
border-radius: 10px;
box-shadow: none;
}
.card-header {
align-items: center;
display: flex;
justify-content: space-between;
margin-bottom: 6px;
}
.card-timestamp {
font-size: 12px;
margin: 0;
}
.card-dismiss {
background: transparent;
border: 0;
color: var(--muted);
cursor: pointer;
font-size: 18px;
line-height: 1;
padding: 0 2px;
}
.card-dismiss:hover {
color: var(--ink);
}
.card-sentence {
font-family: "Literata", serif;
font-size: 17px;
font-weight: 400;
line-height: 1.4;
margin: 0 0 8px;
}
.tag-row {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-top: 9px;
}
.accept-row {
align-items: center;
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-top: 10px;
}
.accept-status {
font-size: 13px;
}
.submit-controls {
align-items: center;
background: var(--paper);
border: 1px solid var(--line);
border-radius: 10px;
display: flex;
flex-wrap: wrap;
gap: 12px;
justify-content: space-between;
margin-top: 14px;
padding: 12px;
}
.privacy-checkbox {
align-items: center;
display: flex;
gap: 8px;
}
.loading-status-message {
background: #eef4ff;
border: 1px solid #b3ccf5;
border-radius: 8px;
color: #1a3a6b;
font-size: 13px;
line-height: 1.45;
margin: 10px 0 0;
padding: 8px 12px;
}
.suggest-edits-row {
border-top: 1px solid var(--line);
margin-top: 14px;
padding-top: 12px;
}
.draft-choice-container {
display: flex;
flex-direction: column;
gap: 14px;
}
.draft-choice-notice {
background: #fef8ec;
border: 1px solid #e8d8a0;
border-radius: 8px;
color: #6b4f00;
font-size: 14px;
line-height: 1.45;
margin: 0;
padding: 10px 14px;
}
.draft-choice-cards {
display: grid;
gap: 12px;
grid-template-columns: 1fr 1fr;
}
.draft-card {
background: var(--bg);
border: 1px solid var(--line);
border-radius: 10px;
display: flex;
flex-direction: column;
gap: 10px;
padding: 14px;
}
.draft-card-label {
color: var(--muted);
font-size: 12px;
font-weight: 700;
letter-spacing: 0.07em;
margin: 0;
text-transform: uppercase;
}
.draft-card-body {
flex: 1;
font-family: "Literata", serif;
font-size: 16px;
line-height: 1.6;
margin: 0;
}
.draft-card-button {
align-self: flex-start;
}
.draft-card-header-row {
align-items: baseline;
display: flex;
gap: 10px;
justify-content: space-between;
}
.draft-card-legend {
align-items: center;
color: var(--muted);
display: flex;
font-size: 11px;
gap: 5px;
margin: 0;
white-space: nowrap;
}
.draft-legend-swatch {
border-radius: 3px;
display: inline-block;
height: 10px;
padding: 0;
vertical-align: middle;
width: 22px;
}
.draft-sentence-changed {
background-color: #fff3cd;
border-radius: 3px;
padding: 1px 2px;
}
.uncertainty-warning {
align-items: center;
background: #fef8ec;
border: 1px solid #e8d8a0;
border-radius: 8px;
display: flex;
flex-wrap: wrap;
gap: 10px;
justify-content: space-between;
margin-top: 12px;
padding: 10px 14px;
}
.uncertainty-warning-text {
color: #6b4f00;
font-size: 14px;
line-height: 1.45;
}
.uncertainty-warning-actions {
align-items: center;
display: flex;
flex-shrink: 0;
gap: 6px;
}
.band-override-row {
align-items: center;
display: flex;
flex-wrap: wrap;
gap: 10px;
}
.band-override-label {
color: var(--muted);
flex-shrink: 0;
font-size: 12px;
}
.band-override-group {
border: 1px solid var(--line);
border-radius: 6px;
display: inline-flex;
overflow: hidden;
}
.band-override-btn {
background: none;
border: none;
border-right: 1px solid var(--line);
cursor: pointer;
font-family: inherit;
font-size: 12px;
font-weight: 500;
padding: 4px 12px;
transition: background 0.1s, color 0.1s;
}
.band-override-btn:last-child {
border-right: none;
}
.band-override-btn:hover:not(.band-override-active) {
background: var(--bg);
}
.band-override-low.band-override-active {
background: #e6f4ea;
color: #1e7e34;
}
.band-override-mid.band-override-active {
background: var(--accent-soft);
color: var(--accent);
}
.band-override-high.band-override-active {
background: #fdecea;
color: var(--danger);
}
.band-override-note {
color: var(--muted);
font-size: 11px;
font-style: italic;
}
.draft-followup {
border: 1px solid var(--line);
border-radius: 8px;
display: flex;
flex-direction: column;
gap: 10px;
margin-top: 12px;
padding: 12px 14px;
}
.draft-followup-prompt {
color: var(--muted);
font-size: 13px;
margin: 0;
}
.draft-followup-options {
align-items: center;
display: flex;
flex-wrap: wrap;
gap: 6px;
}
.draft-followup-skip {
color: var(--muted) !important;
margin-left: 2px;
}
.draft-followup-other {
display: flex;
gap: 8px;
}
.draft-followup-input {
border: 1px solid var(--line);
border-radius: 4px;
flex: 1;
font-size: 14px;
outline: none;
padding: 4px 8px;
}
.draft-followup-input:focus {
border-color: var(--accent);
}
@media (max-width: 600px) {
.draft-choice-cards {
grid-template-columns: 1fr;
}
}
@media (max-width: 960px) {
.masthead {
flex-direction: column;
}
.foundation-badge {
max-width: 100%;
}
.workspace-grid {
grid-template-columns: 1fr;
}
.settings-grid {
grid-template-columns: 1fr;
}
.submit-controls {
align-items: flex-start;
flex-direction: column;
}
}