@import "tailwindcss";
:root {
color-scheme: light;
--accent: #007aff;
--accent-secondary: #5856d6;
--accent-tertiary: #34c759;
--ios-ink: #1d1d1f;
--ios-surface: #ffffff;
--ios-outline: rgba(0, 0, 0, 0.08);
--ios-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
--ios-glass: rgba(255, 255, 255, 0.7);
--ios-font: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
--glass-bg: rgba(255, 255, 255, 0.1);
--glass-border: rgba(255, 255, 255, 0.2);
--glass-rim-light: inset 0 0 0 1px rgba(255, 255, 255, 0.25), inset 0 1px 0 0 rgba(255, 255, 255, 0.4);
--glass-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
--glass-blur: blur(40px) saturate(150%);
}
* {
box-sizing: border-box;
}
body {
margin: 0;
min-height: 100dvh;
font-family: var(--ios-font);
color: var(--ios-ink);
background: #fdfdff;
letter-spacing: -0.01em;
position: relative;
}
.glass-noise-filter {
display: none;
}
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: rgba(0, 122, 255, 0.2);
border-radius: 10px;
border: 2px solid transparent;
background-clip: content-box;
transition: background 0.2s ease;
}
::-webkit-scrollbar-thumb:hover {
background: rgba(0, 122, 255, 0.4);
background-clip: content-box;
}
* {
scrollbar-width: thin;
scrollbar-color: rgba(0, 122, 255, 0.2) transparent;
}
.page {
position: relative;
min-height: 100vh;
overflow: hidden;
padding: 28px 20px 0;
display: flex;
flex-direction: column;
}
.page-glow {
position: absolute;
width: 60vw;
height: 60vw;
border-radius: 50%;
filter: blur(120px);
opacity: 0.4;
z-index: 0;
pointer-events: none;
animation: blob-float 20s infinite alternate cubic-bezier(0.45, 0, 0.55, 1);
}
.page-glow--left {
top: -15%;
left: -5%;
background: radial-gradient(circle, rgba(0, 122, 255, 0.15), transparent 70%);
}
.page-glow--center {
top: 30%;
left: 20%;
background: radial-gradient(circle, rgba(88, 86, 214, 0.1), transparent 70%);
animation-delay: -5s;
opacity: 0.2;
}
.page-glow--right {
bottom: -5%;
right: -5%;
background: radial-gradient(circle, rgba(52, 199, 89, 0.12), transparent 70%);
animation-delay: -10s;
}
@keyframes blob-float {
0% { transform: translate(0, 0) scale(1); }
33% { transform: translate(5%, 10%) scale(1.1); }
66% { transform: translate(-5%, 5%) scale(0.9); }
100% { transform: translate(0, 0) scale(1); }
}
.nav,
.shell {
position: relative;
z-index: 1;
}
.nav {
display: flex;
align-items: center;
justify-content: space-between;
max-width: 1000px;
width: 100%;
margin: 0 auto 48px;
padding: 16px 32px;
background: var(--glass-bg);
backdrop-filter: var(--glass-blur);
-webkit-backdrop-filter: var(--glass-blur);
border: 1px solid var(--glass-border);
border-radius: 24px;
box-shadow: var(--glass-shadow);
position: relative;
overflow: hidden;
}
.nav::before {
content: "";
position: absolute;
inset: 0;
pointer-events: none;
border-radius: inherit;
box-shadow: var(--glass-rim-light);
z-index: 1;
}
.logo {
display: flex;
align-items: center;
gap: 14px;
}
.logo-mark {
width: 42px;
height: 42px;
display: grid;
place-items: center;
border-radius: 14px;
font-weight: 700;
color: var(--ios-ink);
background: transparent;
}
.logo-mark img {
width: 100%;
height: 100%;
object-fit: contain;
border-radius: 999px;
}
.logo-title {
font-size: 18px;
font-weight: 700;
letter-spacing: 0.3px;
}
.logo-subtitle {
font-size: 12px;
color: rgba(11, 11, 22, 0.55);
}
.nav-actions {
display: flex;
gap: 12px;
}
.primary-button,
.secondary-button,
.ghost-button {
display: inline-flex;
align-items: center;
justify-content: center;
border: none;
border-radius: 999px;
padding: 12px 20px;
font-size: 14px;
font-weight: 600;
cursor: pointer;
text-decoration: none;
transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.primary-button {
color: #fff;
background: linear-gradient(180deg, #007aff, #0071eb);
box-shadow: 0 4px 12px rgba(0, 122, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
border: 1px solid rgba(0, 0, 0, 0.05);
}
.primary-button:hover {
background: linear-gradient(180deg, #1a87ff, #007aff);
box-shadow: 0 6px 16px rgba(0, 122, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.25);
transform: translateY(-0.5px);
}
.secondary-button {
background: rgba(0, 0, 0, 0.04);
color: var(--ios-ink);
border: 1px solid transparent;
}
.secondary-button:hover {
background: rgba(0, 0, 0, 0.08);
}
.ghost-button {
background: transparent;
color: #007aff;
}
.shell {
max-width: 1100px;
margin: 0 auto;
display: flex;
flex-direction: column;
gap: 40px;
flex: 1;
width: 100%;
}
.hero {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 32px;
align-items: center;
}
.hero-copy h1 {
font-size: clamp(32px, 5vw, 48px);
line-height: 1.1;
margin: 0 0 16px;
}
.hero-copy p {
font-size: 16px;
line-height: 1.6;
color: rgba(11, 11, 22, 0.7);
margin-bottom: 20px;
}
.accent {
color: var(--ios-gold);
}
.badge {
display: inline-flex;
align-items: center;
padding: 4px 12px;
border-radius: 999px;
font-size: 12px;
font-weight: 600;
color: #007aff;
background: rgba(0, 122, 255, 0.1);
border: 1px solid rgba(0, 122, 255, 0.15);
margin-bottom: 16px;
}
.pill {
padding: 2px 8px;
border-radius: 999px;
background: rgba(0, 122, 255, 0.08);
}
.hero-actions {
display: flex;
flex-wrap: wrap;
gap: 12px;
margin-bottom: 24px;
}
.hero-meta {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
gap: 12px;
}
.hero-meta div {
background: var(--ios-surface);
border: 1px solid var(--ios-outline);
border-radius: 16px;
padding: 12px 14px;
box-shadow: var(--ios-shadow);
}
.hero-meta span {
display: block;
font-size: 12px;
color: rgba(11, 11, 22, 0.6);
}
.stat {
font-size: 16px;
color: var(--ios-ink);
}
.hero-card {
background: var(--glass-bg);
backdrop-filter: var(--glass-blur);
-webkit-backdrop-filter: var(--glass-blur);
border: 1px solid var(--glass-border);
border-radius: 40px;
padding: 48px;
box-shadow: var(--glass-shadow);
display: grid;
gap: 32px;
width: 100%;
max-width: none;
justify-self: stretch;
position: relative;
overflow: hidden;
}
.hero-card::before {
content: "";
position: absolute;
inset: 0;
pointer-events: none;
border-radius: inherit;
box-shadow: var(--glass-rim-light);
z-index: 1;
}
.card-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.card-header h3 {
margin: 0;
font-size: 18px;
}
.card-header span {
font-size: 12px;
color: rgba(11, 11, 22, 0.6);
}
.chip {
padding: 6px 14px;
border-radius: 999px;
background: rgba(0, 122, 255, 0.08);
border: 1px solid rgba(0, 122, 255, 0.1);
color: var(--accent);
font-size: 11px;
font-weight: 600;
letter-spacing: 0.02em;
backdrop-filter: blur(4px);
}
.dropzone {
border: 2px dashed rgba(0, 122, 255, 0.2);
border-radius: 24px;
padding: 40px 24px;
display: flex;
flex-direction: column;
gap: 20px;
align-items: center;
text-align: center;
background: linear-gradient(180deg, rgba(0, 122, 255, 0.02), rgba(0, 122, 255, 0.05));
transition: border-color 0.2s ease, background 0.2s ease;
}
.dropzone:hover {
border-color: rgba(0, 122, 255, 0.4);
background: rgba(0, 122, 255, 0.08);
}
.dropzone-content {
display: grid;
gap: 4px;
justify-items: center;
}
.dropzone strong {
font-size: 16px;
color: var(--ios-ink);
}
.dropzone span {
display: block;
font-size: 13px;
color: var(--ios-ink-soft);
opacity: 0.7;
}
.drop-icon {
font-size: 32px;
margin-bottom: 8px;
color: #007aff;
}
.file-input {
display: none;
}
.upload-actions {
display: flex;
flex-direction: column;
gap: 8px;
}
.upload-actions .primary-button {
width: 100%;
}
.upload-actions button:disabled {
opacity: 0.6;
cursor: not-allowed;
}
.upload-status {
font-size: 12px;
color: rgba(11, 11, 22, 0.6);
}
.status-pill {
padding: 8px 12px;
border-radius: 12px;
font-size: 12px;
background: rgba(0, 122, 255, 0.08);
border: 1px solid rgba(0, 122, 255, 0.12);
}
.result-card {
border-radius: 24px;
border: 1px solid var(--glass-border);
background: var(--glass-bg);
padding: 24px;
box-shadow: var(--glass-shadow);
backdrop-filter: var(--glass-blur);
position: relative;
overflow: hidden;
}
.result-card::before {
content: "";
position: absolute;
inset: 0;
pointer-events: none;
border-radius: inherit;
box-shadow: var(--glass-rim-light);
z-index: 1;
}
.report-stack {
display: grid;
gap: 12px;
}
.report-summary {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;
background: rgba(255, 255, 255, 0.6);
border-radius: 16px;
padding: 12px;
border: 1px solid var(--ios-outline);
}
.summary-label {
font-size: 11px;
color: rgba(11, 11, 22, 0.55);
text-transform: uppercase;
letter-spacing: 0.08em;
}
.summary-value {
font-size: 18px;
font-weight: 700;
}
.summary-value--error {
color: #d94848;
}
.summary-value--warning {
color: #f4b840;
}
.finding-list {
list-style: none;
padding: 0;
margin: 0;
display: grid;
gap: 10px;
}
.finding-list li {
display: grid;
gap: 4px;
padding: 10px;
border-radius: 12px;
background: rgba(0, 122, 255, 0.05);
}
.finding-list li span {
font-size: 12px;
color: rgba(11, 11, 22, 0.65);
}
.finding-empty {
text-align: center;
font-size: 12px;
color: rgba(11, 11, 22, 0.6);
}
.report-actions {
display: flex;
flex-wrap: wrap;
gap: 10px;
}
.bar-list {
display: grid;
gap: 8px;
}
.bar-row {
display: grid;
grid-template-columns: 120px 1fr 40px;
gap: 10px;
align-items: center;
font-size: 12px;
}
.bar {
height: 8px;
border-radius: 999px;
background: rgba(0, 0, 0, 0.03);
overflow: hidden;
}
.bar-fill {
height: 100%;
background: var(--accent);
}
.pill-row {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.pill-chip {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 6px 12px;
border-radius: 999px;
background: rgba(0, 0, 0, 0.04);
font-size: 12px;
border: 1px solid rgba(0, 0, 0, 0.04);
}
.pill-chip--error {
background: rgba(255, 59, 48, 0.1);
color: #ff3b30;
border-color: rgba(255, 59, 48, 0.15);
}
.pill-chip--warning {
background: rgba(255, 149, 0, 0.1);
color: #ff9500;
border-color: rgba(255, 149, 0, 0.15);
}
.pill-chip.is-active {
box-shadow: 0 0 12px currentColor;
transform: scale(1.05);
}
.copy-button {
gap: 8px;
}
.copy-icon {
width: 16px;
height: 16px;
border-radius: 4px;
border: 1.6px solid rgba(15, 24, 46, 0.5);
position: relative;
}
.copy-icon::after {
content: "";
position: absolute;
width: 14px;
height: 14px;
border-radius: 4px;
border: 1.6px solid rgba(15, 24, 46, 0.35);
top: -4px;
left: 4px;
background: rgba(255, 255, 255, 0.6);
}
.copy-button.is-copied .copy-icon {
border-color: rgba(89, 179, 123, 0.9);
}
.copy-button.is-copied .copy-icon::after {
border-color: rgba(89, 179, 123, 0.7);
}
.result-card pre {
margin: 0;
max-height: 220px;
overflow: auto;
font-size: 12px;
line-height: 1.5;
color: #111;
white-space: pre-wrap;
}
.result-header {
font-weight: 600;
margin-bottom: 8px;
cursor: pointer;
list-style: none;
}
.result-card summary::-webkit-details-marker {
display: none;
}
.card-footer {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
font-size: 13px;
color: rgba(11, 11, 22, 0.7);
}
.steps {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
gap: 18px;
}
.scan-panel {
display: flex;
justify-content: center;
width: 100%;
}
.app-footer {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 20px;
margin-top: 64px;
padding: 40px 32px;
border: 1px solid var(--glass-border);
border-bottom: none;
background: var(--glass-bg);
backdrop-filter: blur(24px) saturate(180%);
-webkit-backdrop-filter: blur(24px) saturate(180%);
box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.04);
width: 100%;
position: relative;
overflow: hidden;
border-radius: 40px 40px 0 0;
}
.app-footer::before {
content: "";
position: absolute;
inset: 0;
pointer-events: none;
border-radius: inherit;
box-shadow: var(--glass-refraction);
z-index: 1;
}
.footer-label {
display: inline-flex;
align-items: center;
gap: 10px;
font-weight: 700;
color: rgba(11, 11, 22, 0.75);
font-size: 16px;
}
.footer-subtitle {
font-size: 13px;
color: rgba(11, 11, 22, 0.5);
margin-top: 4px;
}
.footer-links {
display: flex;
flex-wrap: wrap;
gap: 12px;
align-items: center;
}
.footer-link {
color: var(--ios-ink);
text-decoration: none;
font-weight: 600;
font-size: 13px;
padding: 8px 14px;
border-radius: 999px;
border: 1px solid rgba(96, 106, 255, 0.18);
background: rgba(255, 255, 255, 0.9);
box-shadow: 0 8px 20px rgba(32, 36, 70, 0.12);
transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
display: inline-flex;
align-items: center;
gap: 8px;
}
.footer-link:hover {
transform: translateY(-2px);
color: #5b6bff;
box-shadow: 0 14px 30px rgba(32, 36, 70, 0.18);
}
.footer-icon {
width: 18px;
height: 18px;
color: #111827;
}
.footer-link:nth-of-type(2) .footer-icon {
color: #0078d4;
}
.footer-link:nth-of-type(3) .footer-icon {
color: #f04d2f;
}
.step {
display: flex;
gap: 16px;
align-items: flex-start;
padding: 24px;
border-radius: 24px;
background: var(--glass-bg);
backdrop-filter: var(--glass-blur);
border: 1px solid var(--glass-border);
box-shadow: var(--glass-shadow);
position: relative;
overflow: hidden;
}
.step::before {
content: "";
position: absolute;
inset: 0;
pointer-events: none;
border-radius: inherit;
box-shadow: var(--glass-rim-light);
z-index: 1;
}
.step-number {
width: 40px;
height: 40px;
border-radius: 12px;
display: grid;
place-items: center;
background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
color: #fff;
font-weight: 700;
flex-shrink: 0;
}
.step h4 {
margin: 0 0 6px;
}
.step p {
margin: 0;
font-size: 13px;
color: rgba(11, 11, 22, 0.6);
}
.tree-view {
display: grid;
gap: 8px;
margin-top: 10px;
}
.tree-node {
border: 1px solid var(--ios-outline);
border-radius: 16px;
background: rgba(255, 255, 255, 0.3);
backdrop-filter: blur(8px);
overflow: hidden;
transition: all 0.2s ease;
}
.tree-node:hover {
background: rgba(255, 255, 255, 0.5);
border-color: var(--accent-soft);
}
.tree-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 16px;
cursor: pointer;
user-select: none;
font-weight: 600;
}
.tree-header-left {
display: flex;
align-items: center;
gap: 10px;
}
.tree-arrow {
font-size: 10px;
transition: transform 0.2s ease;
color: rgba(11, 11, 22, 0.4);
}
.tree-node.is-expanded .tree-arrow {
transform: rotate(90deg);
}
.tree-badge {
font-size: 10px;
padding: 2px 8px;
border-radius: 999px;
background: rgba(0, 122, 255, 0.1);
color: var(--accent);
}
.tree-content {
border-top: 1px solid var(--ios-outline);
background: rgba(255, 255, 255, 0.3);
display: grid;
gap: 1px;
}
.tree-finding {
display: flex;
flex-direction: column;
gap: 4px;
padding: 12px 16px;
border-bottom: 1px solid rgba(15, 24, 46, 0.05);
font-size: 13px;
transition: background 0.15s ease;
}
.tree-finding:last-child {
border-bottom: none;
}
.tree-finding:hover {
background: rgba(0, 122, 255, 0.04);
}
.tree-finding-title {
display: flex;
align-items: center;
justify-content: space-between;
}
.tree-finding-title strong {
font-weight: 600;
}
.tree-finding-meta {
display: flex;
gap: 12px;
font-size: 11px;
color: rgba(11, 11, 22, 0.5);
}
.tree-finding-desc {
font-size: 12px;
color: rgba(11, 11, 22, 0.7);
margin-top: 2px;
}
.tree-finding-rec {
font-size: 12px;
color: var(--ios-green);
font-weight: 500;
margin-top: 4px;
}
.tree-finding-evidence {
margin: 4px 0;
padding: 8px;
background: rgba(15, 24, 46, 0.04);
border-radius: 8px;
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
font-size: 11px;
color: rgba(11, 11, 22, 0.6);
white-space: pre-wrap;
overflow-x: auto;
}
@media (max-width: 720px) {
.nav {
flex-direction: column;
align-items: flex-start;
gap: 16px;
}
.card-footer {
flex-direction: column;
align-items: flex-start;
}
.hero-card {
justify-self: stretch;
}
}
@keyframes slideDown {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes spin {
to { transform: rotate(360deg); }
}
.spinner {
width: 20px;
height: 20px;
border: 2px solid rgba(255, 255, 255, 0.3);
border-top-color: #fff;
border-radius: 50%;
animation: spin 0.8s linear infinite;
}
.ast-modal-overlay {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background: rgba(255, 255, 255, 0.4);
backdrop-filter: blur(20px) saturate(180%);
z-index: 9999;
display: flex;
align-items: center;
justify-content: center;
animation: fadeIn 0.3s ease-out;
}
.ast-modal-content {
width: 90vw;
height: 85vh;
background: var(--glass-bg);
backdrop-filter: var(--glass-blur);
-webkit-backdrop-filter: var(--glass-blur);
border: 1px solid var(--glass-border);
border-radius: 48px;
box-shadow: 0 40px 100px rgba(0, 0, 0, 0.2);
display: flex;
flex-direction: column;
overflow: hidden;
position: relative;
animation: modalScale 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.ast-modal-content::before {
content: "";
position: absolute;
inset: 0;
pointer-events: none;
border-radius: inherit;
box-shadow: var(--glass-rim-light);
z-index: 10;
}
.ast-modal-header {
padding: 24px 32px;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid var(--ios-outline);
}
.ast-modal-header h3 {
margin: 0;
font-size: 20px;
font-weight: 700;
color: var(--ios-ink);
}
.ast-viewer-layout {
display: flex;
flex: 1;
overflow: hidden;
position: relative;
}
.ast-container {
flex: 1;
padding: 0;
overflow: hidden;
display: flex;
justify-content: center;
align-items: center;
background: rgba(0, 0, 0, 0.01);
mask-image: linear-gradient(to bottom, transparent, #000 5%, #000 95%, transparent);
position: relative;
}
.ast-tree-wrapper {
display: flex;
justify-content: center;
align-items: center;
min-width: 2000px;
min-height: 2000px;
padding: 500px;
}
.ast-details-panel {
width: 380px;
background: var(--ios-surface);
border-left: 1px solid var(--ios-outline);
display: flex;
flex-direction: column;
animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
z-index: 10;
}
.ast-details-header {
padding: 24px;
border-bottom: 1px solid var(--ios-outline);
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 10px;
position: relative;
}
.ast-details-header h4 {
margin: 0;
font-size: 20px;
font-weight: 700;
line-height: 1.4;
color: var(--ios-ink);
padding-right: 32px;
}
.ast-close-button {
position: absolute;
top: 18px;
right: 18px;
width: 32px;
height: 32px;
border-radius: 50%;
background: var(--ios-surface-muted);
display: flex;
align-items: center;
justify-content: center;
border: none;
cursor: pointer;
color: var(--ios-ink-soft);
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
font-size: 18px;
z-index: 2;
}
.ast-close-button:hover {
background: rgba(0, 0, 0, 0.08);
color: var(--ios-ink);
transform: scale(1.05);
}
.ast-close-button:active {
transform: scale(0.95);
}
.ast-details-body {
padding: 24px;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 24px;
}
.ast-details-section label {
display: block;
font-size: 11px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--ios-ink-soft);
margin-bottom: 8px;
}
.ast-details-section p {
font-size: 14px;
line-height: 1.5;
color: var(--ios-ink);
}
.ast-details-section pre {
background: var(--ios-surface-muted);
padding: 12px;
border-radius: 12px;
font-size: 12px;
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
overflow-x: auto;
}
.ast-tree {
display: flex;
flex-direction: column;
align-items: center;
gap: 80px;
position: relative;
min-width: fit-content;
}
.ast-controls {
position: absolute;
bottom: 24px;
left: 32px;
display: flex;
align-items: center;
gap: 8px;
background: var(--ios-glass);
padding: 8px 16px;
border-radius: 20px;
border: 1px solid var(--ios-outline);
box-shadow: var(--ios-shadow);
z-index: 100;
}
.ast-controls .pill-chip {
padding: 6px;
cursor: pointer;
}
.zoom-label {
font-size: 12px;
font-weight: 600;
color: var(--ios-ink-soft);
min-width: 40px;
text-align: center;
}
.ast-level {
display: flex;
gap: 60px;
justify-content: center;
position: relative;
}
.ast-node {
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
position: relative;
transition: transform 0.2s ease;
z-index: 2;
}
.ast-node:hover {
transform: scale(1.05);
}
.ast-node-icon {
width: 56px;
height: 56px;
border-radius: 18px;
background: var(--ios-surface);
border: 1px solid var(--ios-outline);
box-shadow: var(--ios-shadow);
display: grid;
place-items: center;
font-size: 24px;
color: #007aff;
transition: all 0.2s ease;
z-index: 3;
}
.ast-node--error .ast-node-icon {
border-color: rgba(255, 59, 48, 0.4);
background: rgba(255, 59, 48, 0.05);
color: var(--ios-red);
box-shadow: 0 0 20px rgba(255, 59, 48, 0.2);
animation: nodePulse 2s infinite;
}
.ast-node--warning .ast-node-icon {
border-color: rgba(255, 189, 46, 0.4);
background: rgba(255, 189, 46, 0.05);
color: var(--ios-gold);
}
.ast-node-label {
font-size: 12px;
font-weight: 600;
color: var(--ios-ink);
white-space: nowrap;
max-width: 160px;
overflow: hidden;
text-overflow: ellipsis;
background: var(--ios-glass);
padding: 4px 10px;
border-radius: 8px;
backdrop-filter: blur(8px);
border: 1px solid var(--ios-outline);
box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.ast-node-sublabel {
font-size: 9px;
color: var(--ios-ink-soft);
opacity: 0.6;
}
.ast-connector {
position: absolute;
top: 40px;
left: 50%;
width: 2px;
background: linear-gradient(180deg, #007aff80, var(--ios-outline));
height: 80px;
transform: translateX(-50%);
z-index: 1;
}
.ast-node.is-focused .ast-node-icon {
border-color: #007aff;
box-shadow: 0 0 20px rgba(0, 122, 255, 0.3);
transform: scale(1.1);
}
@keyframes nodePulse {
0% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.4); }
70% { box-shadow: 0 0 0 15px rgba(255, 59, 48, 0); }
100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); }
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes modalScale {
from { opacity: 0; transform: scale(0.95) translateY(20px); }
to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes slideInRight {
from { transform: translateX(100%); }
to { transform: translateX(0); }
}
.mode-toggle {
display: flex;
background: rgba(0, 0, 0, 0.05);
padding: 4px;
border-radius: 12px;
gap: 4px;
}
.mode-toggle button {
padding: 6px 12px;
border-radius: 8px;
font-size: 12px;
font-weight: 600;
border: none;
background: transparent;
color: var(--ios-ink-soft);
cursor: pointer;
transition: all 0.2s ease;
}
.mode-toggle button.is-active {
background: var(--ios-surface);
color: #007aff;
box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}