Files
heygo/src/styles.css
T
2026-06-20 20:28:53 +10:00

1411 lines
32 KiB
CSS

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&display=swap');
@import "tailwindcss";
@theme inline {
--color-background: var(--background);
--color-foreground: var(--text);
--color-card: var(--surface);
--color-card-foreground: var(--text);
--color-popover: var(--surface);
--color-popover-foreground: var(--text);
--color-primary: var(--accent);
--color-primary-foreground: #ffffff;
--color-secondary: #E2E8F0;
--color-secondary-foreground: var(--text);
--color-muted: #F8FAFC;
--color-muted-foreground: var(--muted);
--color-accent: var(--accent-soft);
--color-accent-foreground: var(--accent-text);
--color-destructive: var(--danger);
--color-border: var(--border);
--color-input: var(--border-strong);
--color-ring: rgba(99,102,241,0.35);
--radius-sm: var(--radius-xs);
--radius-md: var(--radius-sm);
--radius-lg: var(--radius);
--radius-xl: calc(var(--radius) + 4px);
}
:root {
color-scheme: light;
--background: #F1F5F9;
--surface: #ffffff;
--border: #E2E8F0;
--border-strong: #CBD5E1;
--text: #0F172A;
--muted: #64748B;
--accent: #6366F1;
--accent-hover: #4F46E5;
--accent-soft: #EEF2FF;
--accent-text: #4338CA;
--success: #10B981;
--success-soft: #D1FAE5;
--danger: #EF4444;
--danger-soft: #FEE2E2;
--warning: #F59E0B;
--warning-soft: #FEF3C7;
--radius: 16px;
--radius-sm: 8px;
--radius-xs: 6px;
--shadow-card: 0 1px 3px rgba(15,23,42,0.08), 0 4px 24px rgba(15,23,42,0.04);
--shadow-dialog: 0 20px 60px rgba(15,23,42,0.15), 0 4px 16px rgba(15,23,42,0.08);
color: var(--text);
background: var(--background);
font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
font-size: 15px;
line-height: 1.5;
}
* { box-sizing: border-box; }
html { background: var(--background); }
body { margin: 0; min-width: 320px; }
button,
input,
textarea,
select {
font: inherit;
}
a {
color: var(--accent);
font-weight: 500;
text-decoration: none;
}
a:hover { color: var(--accent-hover); text-decoration: underline; }
code {
background: var(--accent-soft);
border-radius: 5px;
padding: 0.1em 0.4em;
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 0.875em;
color: var(--accent-text);
font-weight: 500;
}
.muted { color: var(--muted); }
/* ═══════════════════════════════════════════
Layout
════════════════════════════════════════════ */
.app-shell {
display: flex;
flex-direction: column;
min-height: 100vh;
}
.app-bar {
align-items: center;
background: color-mix(in srgb, var(--surface) 88%, white 12%);
backdrop-filter: blur(12px);
border-bottom: 1px solid rgba(226,232,240,0.9);
display: flex;
gap: 0.75rem;
padding: 0 2rem;
height: 68px;
position: sticky;
top: 0;
z-index: 40;
}
.brand {
font-family: 'Syne', ui-sans-serif, sans-serif;
font-size: 1.45rem;
font-weight: 800;
color: var(--text);
text-decoration: none;
letter-spacing: -0.03em;
margin-right: 0.5rem;
flex-shrink: 0;
}
.brand:hover { color: var(--accent); text-decoration: none; }
.tabs {
display: flex;
gap: 0.25rem;
background: var(--background);
border: 1px solid var(--border);
border-radius: 999px;
padding: 4px;
}
.tab {
border-radius: 999px;
color: var(--muted);
font-weight: 500;
font-size: 0.875rem;
padding: 0.45rem 0.95rem;
text-decoration: none;
transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.tab:hover { background: var(--surface); color: var(--text); text-decoration: none; }
.tab.is-active {
background: var(--surface);
color: var(--accent);
font-weight: 600;
box-shadow: 0 1px 3px rgba(99,102,241,0.12);
}
.app-main {
align-items: center;
display: flex;
flex: 1;
flex-direction: column;
gap: 1.5rem;
padding: 2rem 1.5rem 2.5rem;
}
.app-footer {
border-top: 1px solid var(--border);
color: var(--muted);
font-size: 0.8rem;
padding: 1rem 2rem 1.5rem;
text-align: center;
}
/* ═══════════════════════════════════════════
Cards / panels
════════════════════════════════════════════ */
.panel {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
box-shadow: var(--shadow-card);
max-width: 1100px;
padding: 1.75rem 2rem;
width: 100%;
}
.login-panel { max-width: 440px; }
.auth-page {
align-items: center;
background:
radial-gradient(circle at 50% 0%, rgba(99,102,241,0.12), transparent 34%),
var(--surface);
border: 1px solid var(--border);
border-radius: 12px;
box-shadow: 0 18px 50px rgba(15,23,42,0.08), 0 2px 12px rgba(15,23,42,0.04);
display: flex;
flex-direction: column;
margin-top: clamp(1rem, 8vh, 4.5rem);
max-width: 420px;
padding: 2.25rem 2rem 1.5rem;
text-align: center;
width: min(100%, 420px);
}
.auth-mark {
align-items: center;
background: var(--text);
border-radius: 10px;
color: white;
display: flex;
font-family: 'Syne', ui-sans-serif, sans-serif;
font-size: 1.35rem;
font-weight: 800;
height: 44px;
justify-content: center;
margin-bottom: 1.1rem;
width: 44px;
}
.auth-page h1 {
color: var(--text);
font-size: 1.45rem;
font-weight: 750;
line-height: 1.18;
margin: 0;
}
.auth-copy {
color: var(--muted);
font-size: 0.92rem;
margin: 0.75rem 0 0;
max-width: 32ch;
}
.auth-legal,
.auth-secondary {
color: var(--muted);
font-size: 0.78rem;
line-height: 1.45;
margin: 0;
max-width: 34ch;
}
.auth-legal {
border-top: 1px solid var(--border);
margin-top: 0.95rem;
padding-top: 1rem;
}
.auth-legal a,
.auth-secondary a {
font-size: inherit;
font-weight: 650;
}
.auth-secondary {
margin-top: 0.85rem;
}
.legal-page {
max-width: 760px;
padding: 2.25rem 2.5rem;
}
.legal-kicker {
color: var(--accent-text);
font-family: 'Syne', ui-sans-serif, sans-serif;
font-size: 0.82rem;
font-weight: 800;
letter-spacing: 0;
margin: 0 0 0.35rem;
}
.legal-page h1 {
font-size: 1.8rem;
line-height: 1.15;
margin: 0 0 0.35rem;
}
.legal-page h2 {
font-size: 1rem;
margin: 1.55rem 0 0.45rem;
}
.legal-page p {
color: var(--muted);
margin: 0;
}
.panel-header {
align-items: flex-start;
display: flex;
gap: 1rem;
justify-content: space-between;
margin-bottom: 1.25rem;
flex-wrap: wrap;
}
.panel-header h1 {
font-size: 1.375rem;
font-weight: 700;
margin: 0;
letter-spacing: -0.02em;
color: var(--text);
}
.panel-header .muted {
margin: 0.2rem 0 0;
font-size: 0.875rem;
}
.panel-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.form-card {
background: #FAFBFF;
border: 1px solid var(--border);
border-radius: var(--radius-sm);
margin: 1rem 0;
padding: 1.25rem 1.5rem;
}
.form-card h2 {
font-size: 1rem;
font-weight: 600;
margin: 0 0 1rem;
color: var(--text);
letter-spacing: -0.01em;
}
.divider { border: none; border-top: 1px solid var(--border); margin: 1.25rem 0; }
/* ═══════════════════════════════════════════
Alias pill — the signature element
════════════════════════════════════════════ */
code,
.alias-pill {
background: var(--accent-soft);
border-radius: 999px;
border: 1px solid rgba(99,102,241,0.14);
display: inline-flex;
align-items: center;
gap: 0.15rem;
padding: 0.18em 0.6em;
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 0.875em;
color: var(--accent-text);
font-weight: 600;
white-space: nowrap;
}
.alias-preview {
display: inline-flex;
align-items: center;
gap: 0.45rem;
flex-wrap: wrap;
}
.alias-input {
position: relative;
}
.alias-input__prefix {
position: absolute;
left: 0.8rem;
top: 50%;
transform: translateY(-50%);
color: var(--accent-text);
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 0.95rem;
font-weight: 700;
pointer-events: none;
}
.alias-input input {
padding-left: 1.65rem !important;
}
/* ═══════════════════════════════════════════
Provider buttons (OAuth)
════════════════════════════════════════════ */
.provider-buttons {
display: flex;
flex-direction: column;
gap: 0.625rem;
margin: 1.35rem 0 0;
width: 100%;
}
.provider-button {
align-items: center;
background: #0F172A;
border: 1px solid var(--border-strong);
border-radius: 8px;
color: white;
display: flex;
font-weight: 650;
font-size: 0.9375rem;
gap: 0.625rem;
justify-content: center;
min-height: 44px;
padding: 0.72rem 1rem;
text-decoration: none;
transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.provider-button:hover {
background: #1E293B;
border-color: #1E293B;
box-shadow: 0 8px 22px rgba(15,23,42,0.18);
color: white;
text-decoration: none;
transform: translateY(-1px);
}
.provider-button.is-disabled {
color: var(--muted);
cursor: not-allowed;
opacity: 0.6;
}
.provider-button__icon {
align-items: center;
background: white;
border-radius: 50%;
color: #334155;
display: flex;
font-weight: 800;
height: 22px;
justify-content: center;
width: 22px;
}
.provider-note {
color: var(--muted);
font-size: 0.8125rem;
margin: 0.25rem 0 0;
line-height: 1.5;
}
/* ═══════════════════════════════════════════
Forms
════════════════════════════════════════════ */
.link-form { display: flex; flex-direction: column; gap: 1rem; }
.field {
display: flex;
flex-direction: column;
gap: 0.35rem;
}
.field > label,
.field > legend {
font-size: 0.875rem;
font-weight: 500;
color: var(--text);
padding: 0;
}
.field legend { font-weight: 500; padding: 0; }
.radio {
align-items: center;
display: inline-flex;
gap: 0.4rem;
font-weight: 400;
font-size: 0.9rem;
cursor: pointer;
}
.hint {
color: var(--muted);
font-size: 0.8rem;
line-height: 1.4;
}
.link-form input[type="text"],
.link-form input[type="url"],
.link-form input[type="email"],
.link-form input:not([type]),
.link-form textarea,
.dev-login-form input {
background: var(--surface);
border: 1px solid var(--border-strong);
border-radius: var(--radius-sm);
color: var(--text);
font: inherit;
font-size: 0.9375rem;
padding: 0.55rem 0.75rem;
width: 100%;
transition: border-color 0.15s, box-shadow 0.15s;
}
.link-form input:focus,
.link-form textarea:focus,
.dev-login-form input:focus {
border-color: var(--accent);
box-shadow: 0 0 0 3px var(--accent-soft);
outline: none;
}
.form-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
button {
background: var(--accent);
border: 1px solid transparent;
border-radius: var(--radius-sm);
color: white;
cursor: pointer;
font: inherit;
font-size: 0.9rem;
font-weight: 500;
padding: 0.5rem 1rem;
transition: background 0.15s, box-shadow 0.15s, border-color 0.15s, color 0.15s;
line-height: 1.4;
}
button:hover { background: var(--accent-hover); }
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button:disabled { background: #C7D2FE; cursor: not-allowed; color: #818CF8; }
.form-actions > button[type="button"]:not(.dialog-close):not(.link-action),
.panel-actions > button:not(.tab-button),
.admin-toolbar > button {
background: var(--surface);
border-color: var(--border-strong);
color: var(--text);
}
.form-actions > button[type="button"]:not(.dialog-close):not(.link-action):hover,
.panel-actions > button:not(.tab-button):hover,
.admin-toolbar > button:hover {
background: var(--background);
}
button.link-action {
background: var(--surface);
border: 1px solid var(--border-strong);
color: var(--text);
font-size: 0.8125rem;
font-weight: 500;
padding: 0.3rem 0.65rem;
}
button.link-action:hover { background: var(--background); border-color: #94A3B8; }
button.link-action--danger {
border-color: #FCA5A5;
color: var(--danger);
}
button.link-action--danger:hover { background: var(--danger-soft); border-color: var(--danger); }
button.link-action--approve {
border-color: #6EE7B7;
color: #065F46;
}
button.link-action--approve:hover { background: var(--success-soft); border-color: var(--success); }
button.link-action--confirm {
border-color: #A5B4FC;
color: var(--accent-text);
}
button.link-action--confirm:hover { background: var(--accent-soft); }
.form-error {
background: var(--danger-soft);
border: 1px solid #FCA5A5;
border-radius: var(--radius-xs);
color: #B91C1C;
font-size: 0.875rem;
margin: 0;
padding: 0.625rem 0.875rem;
}
/* ═══════════════════════════════════════════
Tables
═══════════════════════════════════════════ */
/* Toolbar above table/cards */
.link-table-toolbar {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 0.75rem;
flex-wrap: wrap;
gap: 0.5rem;
}
/* Sortable column headers */
.sortable-th {
cursor: pointer;
user-select: none;
transition: color 0.1s;
}
.sortable-th:hover { color: var(--text); background: var(--background); }
.sort-icon { margin-left: 0.2rem; font-size: 0.8em; }
.sort-icon--idle { opacity: 0.3; }
.link-table {
border-collapse: separate;
border-spacing: 0;
width: 100%;
font-size: 0.9rem;
}
.link-table thead {
background: #F8FAFC;
}
.link-table th {
border-bottom: 2px solid var(--border);
color: var(--muted);
font-size: 0.75rem;
font-weight: 600;
letter-spacing: 0.05em;
padding: 0.75rem 0.875rem;
text-align: left;
text-transform: uppercase;
white-space: nowrap;
}
.link-table thead th:first-child { border-top-left-radius: var(--radius-xs); }
.link-table thead th:last-child { border-top-right-radius: var(--radius-xs); }
.link-table td {
border-bottom: 1px solid var(--border);
padding: 0.75rem 0.875rem;
vertical-align: middle;
color: var(--text);
}
.link-table tbody tr {
transition: background 0.1s;
}
.link-table tbody tr:hover { background: #F8FAFF; }
.link-table-row--clickable { cursor: pointer; }
.link-table-row--clickable:focus-visible {
background: #F8FAFF;
outline: 2px solid #818CF8;
outline-offset: -2px;
}
.link-table tbody tr:last-child td { border-bottom: none; }
.link-table tr.is-selected { background: var(--accent-soft); }
.link-table tr.is-selected:hover { background: #E0E7FF; }
.col-select { width: 2.5rem; }
.col-actions { white-space: nowrap; text-align: right; }
.col-actions button + button { margin-left: 0.35rem; }
.row-description {
color: var(--muted);
display: block;
font-size: 0.8rem;
margin-top: 0.25rem;
line-height: 1.45;
}
.link-type-badge {
align-items: center;
display: inline-flex;
gap: 0.4rem;
font-size: 0.75rem;
font-weight: 600;
line-height: 1;
}
.link-type-badge svg {
flex-shrink: 0;
}
.link-type-badge.is-redirect {
color: #2563EB;
}
.link-type-badge.is-custom {
color: #16A34A;
}
.truncate {
display: inline-block;
max-width: 22rem;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
vertical-align: bottom;
}
.table-status,
.table-empty {
color: var(--muted);
padding: 2.5rem 0;
text-align: center;
font-size: 0.9375rem;
}
.table-error {
color: var(--danger);
padding: 1rem 0;
text-align: center;
font-size: 0.9375rem;
}
.selection-bar {
align-items: center;
background: var(--accent-soft);
border: 1px solid #C7D2FE;
border-radius: var(--radius-sm);
color: var(--accent-text);
display: flex;
flex-wrap: wrap;
font-size: 0.875rem;
gap: 0.5rem;
margin: 0.5rem 0;
padding: 0.625rem 0.875rem;
}
.selection-bar > span { font-weight: 600; }
/* ═══════════════════════════════════════════
Cards view
═══════════════════════════════════════════ */
.link-cards-grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 0.75rem;
}
@media (max-width: 1200px) { .link-cards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px) { .link-cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .link-cards-grid { grid-template-columns: 1fr; } }
.link-card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
display: flex;
flex-direction: column;
gap: 0.375rem;
min-width: 0;
padding: 0.75rem;
transition: border-color 0.15s, box-shadow 0.15s;
}
.link-card--clickable { cursor: pointer; }
.link-card:hover {
border-color: #C7D2FE;
box-shadow: 0 4px 16px rgba(99,102,241,0.08);
}
.link-card--clickable:focus-visible {
border-color: #818CF8;
box-shadow: 0 0 0 3px rgba(99,102,241,0.18), 0 4px 16px rgba(99,102,241,0.08);
outline: none;
}
.link-card.is-selected { background: var(--accent-soft); border-color: #A5B4FC; }
.link-card-header {
align-items: center;
display: flex;
flex-wrap: wrap;
gap: 0.4rem;
min-width: 0;
}
.link-card-type-badge {
font-size: 0.7rem;
letter-spacing: 0.04em;
margin-left: auto;
text-transform: uppercase;
}
.link-card-desc {
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
color: var(--muted);
display: -webkit-box;
font-size: 0.75rem;
line-height: 1.4;
margin: 0;
overflow: hidden;
}
.link-card-url {
font-size: 0.72rem;
margin: 0;
max-width: 100%;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.link-card-url .truncate {
display: block;
max-width: 100%;
}
.link-card-meta {
align-items: center;
border-top: 1px solid var(--border);
display: flex;
font-size: 0.72rem;
justify-content: space-between;
margin-top: auto;
padding-top: 0.375rem;
}
.link-card-actions {
display: flex;
flex-wrap: wrap;
gap: 0.35rem;
}
.dialog-backdrop {
align-items: center;
background: rgba(15,23,42,0.4);
backdrop-filter: blur(2px);
display: flex;
inset: 0;
justify-content: center;
padding: 1rem;
position: fixed;
z-index: 50;
}
.dialog-card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
box-shadow: var(--shadow-dialog);
max-width: 480px;
padding: 1.5rem 1.75rem;
width: 100%;
}
.dialog-header {
align-items: center;
display: flex;
justify-content: space-between;
margin-bottom: 1.25rem;
}
.dialog-header h2 {
font-size: 1.125rem;
font-weight: 600;
margin: 0;
letter-spacing: -0.01em;
}
.dialog-close {
background: transparent;
border: 1px solid transparent;
border-radius: var(--radius-xs);
color: var(--muted);
font-size: 1.25rem;
line-height: 1;
padding: 0.2rem 0.45rem;
}
.dialog-close:hover {
background: var(--background);
border-color: var(--border);
color: var(--text);
}
.dialog-card select {
background: var(--surface);
border: 1px solid var(--border-strong);
border-radius: var(--radius-sm);
color: var(--text);
font: inherit;
font-size: 0.9375rem;
padding: 0.55rem 0.75rem;
width: 100%;
transition: border-color 0.15s, box-shadow 0.15s;
}
.dialog-card select:focus {
border-color: var(--accent);
box-shadow: 0 0 0 3px var(--accent-soft);
outline: none;
}
.detail-actions {
display: flex;
flex-direction: column;
align-items: flex-end;
gap: 0.45rem;
}
.detail-actions__buttons {
display: flex;
flex-wrap: wrap;
justify-content: flex-end;
gap: 0.5rem;
}
.detail-copy-button {
display: inline-flex;
align-items: center;
gap: 0.4rem;
}
.detail-actions__notice {
display: inline-flex;
align-items: center;
gap: 0.35rem;
padding: 0.35rem 0.65rem;
border-radius: 999px;
background: color-mix(in srgb, var(--success-soft) 76%, white 24%);
color: #047857;
font-size: 0.75rem;
font-weight: 600;
letter-spacing: 0.01em;
}
.detail-panel {
position: relative;
overflow: hidden;
}
.detail-panel::before {
content: '';
position: absolute;
inset: 0;
pointer-events: none;
background: linear-gradient(180deg, rgba(255,255,255,0.5), rgba(255,255,255,0));
}
.detail-panel--public {
background: linear-gradient(180deg, #F2FFF6 0%, #FFFFFF 38%);
border-color: rgba(22, 163, 74, 0.18);
}
.detail-panel--private {
background: linear-gradient(180deg, #FFF4F4 0%, #FFFFFF 38%);
border-color: rgba(220, 38, 38, 0.16);
}
.detail-panel__title-group {
display: inline-flex;
align-items: center;
gap: 0.7rem;
}
.detail-panel__title {
font-size: 1.125rem;
font-weight: 700;
margin: 0;
letter-spacing: -0.01em;
}
.detail-panel__scope-icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 2rem;
height: 2rem;
border-radius: 999px;
border: 1px solid transparent;
box-shadow: inset 0 1px 0 rgba(255,255,255,0.45);
}
.detail-panel__scope-icon.is-public {
background: linear-gradient(135deg, rgba(34,197,94,0.18), rgba(16,185,129,0.28));
border-color: rgba(22,163,74,0.18);
color: #15803D;
}
.detail-panel__scope-icon.is-private {
background: linear-gradient(135deg, rgba(248,113,113,0.16), rgba(251,146,60,0.18));
border-color: rgba(220,38,38,0.16);
color: #B91C1C;
}
.copy-success-toast {
position: fixed;
top: 5.5rem;
right: 1.5rem;
z-index: 45;
display: grid;
grid-template-columns: auto 1fr auto;
gap: 0.875rem;
align-items: start;
width: min(25rem, calc(100vw - 2rem));
padding: 0.95rem 1rem 1.1rem;
border-radius: 20px;
border: 1px solid rgba(129, 140, 248, 0.22);
background:
linear-gradient(135deg, rgba(129, 140, 248, 0.16), rgba(15, 23, 42, 0) 52%),
#0F172A;
color: #F8FAFC;
box-shadow: 0 22px 60px rgba(15,23,42,0.22), 0 8px 20px rgba(15,23,42,0.14);
overflow: hidden;
animation: copy-success-toast-enter 180ms ease-out;
}
.copy-success-toast__chip {
display: inline-flex;
align-items: center;
justify-content: center;
width: 2rem;
height: 2rem;
border-radius: 999px;
background: rgba(99, 102, 241, 0.22);
border: 1px solid rgba(165, 180, 252, 0.35);
color: #C7D2FE;
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 1rem;
font-weight: 700;
}
.copy-success-toast__body {
min-width: 0;
}
.copy-success-toast__eyebrow,
.copy-success-toast__title,
.copy-success-toast__detail {
margin: 0;
}
.copy-success-toast__eyebrow {
color: #A5B4FC;
font-size: 0.68rem;
font-weight: 700;
letter-spacing: 0.16em;
text-transform: uppercase;
}
.copy-success-toast__title {
margin-top: 0.2rem;
color: #F8FAFC;
font-family: 'Syne', ui-sans-serif, sans-serif;
font-size: 1rem;
font-weight: 700;
letter-spacing: -0.02em;
}
.copy-success-toast__detail {
margin-top: 0.2rem;
color: #CBD5E1;
font-size: 0.8125rem;
}
.copy-success-toast__close {
appearance: none;
padding: 0.15rem 0.45rem;
border-radius: 999px;
border: 1px solid rgba(148, 163, 184, 0.22);
background: rgba(255,255,255,0.04);
color: #CBD5E1;
line-height: 1;
}
.copy-success-toast__close:hover {
background: rgba(255,255,255,0.1);
color: #FFFFFF;
}
.copy-success-toast__meter {
position: absolute;
left: 1rem;
right: 1rem;
bottom: 0.7rem;
height: 2px;
border-radius: 999px;
background: linear-gradient(90deg, #818CF8 0%, rgba(129, 140, 248, 0.18) 100%);
transform-origin: left center;
animation: copy-success-toast-meter 4200ms linear forwards;
}
@keyframes copy-success-toast-enter {
from {
opacity: 0;
transform: translateY(-10px) scale(0.98);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}
@keyframes copy-success-toast-meter {
from {
transform: scaleX(1);
opacity: 1;
}
to {
transform: scaleX(0);
opacity: 0.65;
}
}
@media (prefers-reduced-motion: reduce) {
.copy-success-toast,
.copy-success-toast__meter {
animation: none;
}
}
/* ═══════════════════════════════════════════
Admin review
════════════════════════════════════════════ */
.tab-button {
background: var(--surface);
border: 1px solid var(--border-strong);
border-radius: 999px;
color: var(--muted);
font-size: 0.8125rem;
font-weight: 500;
padding: 0.35rem 0.8rem;
}
.tab-button:hover { background: var(--background); color: var(--text); }
.tab-button.is-active {
background: var(--accent);
border-color: var(--accent);
color: white;
}
.review-table .review-reason { color: var(--danger); }
.status-badge {
border-radius: 999px;
display: inline-flex;
align-items: center;
font-size: 0.75rem;
font-weight: 600;
padding: 0.2rem 0.65rem;
letter-spacing: 0.02em;
white-space: nowrap;
}
.status-pending { background: var(--warning-soft); color: #92400E; }
.status-approved { background: var(--success-soft); color: #065F46; }
.status-rejected { background: var(--danger-soft); color: #B91C1C; }
.status-needs_changes { background: var(--accent-soft); color: var(--accent-text); }
.inline-review {
align-items: center;
display: flex;
flex-wrap: wrap;
gap: 0.35rem;
}
.inline-review input[type="text"] {
background: var(--surface);
border: 1px solid var(--border-strong);
border-radius: var(--radius-xs);
font: inherit;
font-size: 0.875rem;
padding: 0.3rem 0.5rem;
width: 12rem;
}
.inline-review input:focus {
border-color: var(--accent);
box-shadow: 0 0 0 3px var(--accent-soft);
outline: none;
}
/* ═══════════════════════════════════════════
Admin tools (details/summary)
════════════════════════════════════════════ */
.admin-tools {
border: 1px solid var(--border);
border-radius: var(--radius-sm);
margin-top: 1.5rem;
overflow: hidden;
}
.admin-tools > summary {
background: #F8FAFC;
border-bottom: 1px solid transparent;
cursor: pointer;
font-weight: 600;
font-size: 0.875rem;
color: var(--muted);
padding: 0.75rem 1rem;
transition: background 0.15s;
list-style: none;
}
.admin-tools > summary::-webkit-details-marker { display: none; }
.admin-tools[open] > summary {
background: var(--accent-soft);
border-bottom-color: var(--border);
color: var(--accent-text);
}
.admin-tools > summary:hover { color: var(--text); }
.admin-toolbar {
display: flex;
gap: 0.5rem;
padding: 0.75rem 1rem;
flex-wrap: wrap;
}
/* ═══════════════════════════════════════════
App bar right / user menu
════════════════════════════════════════════ */
.app-bar-right {
margin-left: auto;
position: relative;
}
.user-menu {
position: relative;
}
.user-menu-loading {
width: 80px;
height: 32px;
border-radius: 8px;
background: var(--border);
animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
0%, 100% { opacity: 0.5; }
50% { opacity: 1; }
}
.signin-button {
background: var(--accent);
border-radius: var(--radius-xs);
color: white;
font-size: 0.875rem;
font-weight: 500;
padding: 0.45rem 1rem;
text-decoration: none;
transition: background 0.15s;
white-space: nowrap;
}
.signin-button:hover { background: var(--accent-hover); color: white; text-decoration: none; }
.user-trigger {
align-items: center;
border: 1px solid transparent;
border-radius: 8px;
cursor: pointer;
display: flex;
gap: 0.5rem;
padding: 0.3rem 0.6rem;
transition: background 0.15s, border-color 0.15s;
}
.user-trigger:hover,
.user-trigger:focus {
background: var(--background);
border-color: var(--border);
outline: none;
}
.user-avatar {
border-radius: 50%;
flex-shrink: 0;
height: 30px;
overflow: hidden;
width: 30px;
}
.user-avatar img {
height: 100%;
object-fit: cover;
width: 100%;
}
.user-avatar-fallback {
align-items: center;
background: linear-gradient(135deg, var(--accent) 0%, #818CF8 100%);
border-radius: 50%;
color: white;
display: flex;
font-size: 0.8rem;
font-weight: 700;
height: 100%;
justify-content: center;
width: 100%;
}
.user-name {
font-weight: 500;
font-size: 0.875rem;
max-width: 120px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: var(--text);
}
.admin-badge {
background: var(--warning-soft);
border-radius: 999px;
color: #92400E;
font-size: 0.65rem;
font-weight: 700;
letter-spacing: 0.04em;
padding: 0.1rem 0.45rem;
text-transform: uppercase;
}
.chevron {
color: var(--muted);
flex-shrink: 0;
transition: transform 0.2s;
}
.user-menu:hover .chevron,
.user-menu:focus-within .chevron {
transform: rotate(180deg);
}
.user-dropdown {
background: var(--surface);
border: 1px solid var(--border);
border-radius: 10px;
box-shadow: 0 8px 30px rgba(15,23,42,0.12), 0 2px 8px rgba(15,23,42,0.06);
min-width: 180px;
opacity: 0;
padding: 0.35rem;
position: absolute;
right: 0;
top: calc(100% + 6px);
transform: translateY(-6px);
transition: opacity 0.15s, transform 0.15s;
visibility: hidden;
z-index: 20;
}
.user-dropdown::before {
content: "";
height: 8px;
left: 0;
position: absolute;
right: 0;
top: -8px;
}
.user-menu:hover .user-dropdown,
.user-menu:focus-within .user-dropdown {
opacity: 1;
transform: translateY(0);
visibility: visible;
}
.dropdown-item {
border: none;
border-radius: 6px;
color: var(--text);
cursor: pointer;
display: block;
font: inherit;
font-size: 0.875rem;
font-weight: 400;
padding: 0.5rem 0.75rem;
text-align: left;
text-decoration: none;
width: 100%;
background: transparent;
transition: background 0.1s;
}
.dropdown-item:hover {
background: var(--background);
color: var(--text);
text-decoration: none;
}
.dropdown-item--danger { color: var(--danger); }
.dropdown-item--danger:hover { background: var(--danger-soft); }
.dropdown-divider {
border-top: 1px solid var(--border);
margin: 0.3rem 0;
}
/* ═══════════════════════════════════════════
Dev login form
════════════════════════════════════════════ */
.dev-login-form {
display: flex;
flex-direction: column;
gap: 0.875rem;
margin-top: 1.25rem;
}
.dev-login-form label {
display: flex;
flex-direction: column;
font-size: 0.875rem;
font-weight: 500;
gap: 0.35rem;
}
.success-msg { color: var(--success); font-size: 0.9rem; margin: 0; }
.error-msg { color: var(--danger); font-size: 0.9rem; margin: 0; }
/* ═══════════════════════════════════════════
Responsive
════════════════════════════════════════════ */
@media (max-width: 640px) {
.panel { padding: 1.25rem 1rem; }
.app-bar { padding: 0 1rem; height: auto; min-height: 68px; flex-wrap: wrap; align-content: center; }
.link-table { font-size: 0.8125rem; }
.truncate { max-width: 10rem; }
.user-name { display: none; }
.user-dropdown { right: -0.5rem; }
.copy-success-toast {
top: auto;
right: 1rem;
left: 1rem;
bottom: 1rem;
width: auto;
}
.detail-actions {
width: 100%;
align-items: stretch;
}
.detail-actions__buttons {
justify-content: stretch;
}
.detail-actions__buttons > * {
flex: 1 1 auto;
justify-content: center;
}
.detail-actions__notice {
align-self: flex-start;
}
}