:root { --bg: #f4f7fb; --panel: rgba(255,255,255,0.92); --ink: #0f1b33; --muted: #64748b; --line: #dbe4f0; --blue: #1057c8; --green: #16833a; --red: #d43a36; --amber: #bd7b00; --shadow: 0 22px 60px rgba(16, 35, 77, .12); --radius: 22px; } * { box-sizing: border-box; } body { margin: 0; font-family: Inter, Segoe UI, Arial, sans-serif; color: var(--ink); background: radial-gradient(circle at 20% 0%, #e8f0ff 0, transparent 32%), var(--bg); } .hero { display: flex; justify-content: space-between; gap: 28px; align-items: flex-end; padding: 40px clamp(20px, 4vw, 56px) 22px; } h1 { margin: 0; font-size: clamp(28px, 4vw, 52px); line-height: 1.02; letter-spacing: -0.04em; } h2 { margin: 0 0 10px; font-size: 22px; } h3 { margin: 0 0 10px; font-size: 16px; } p { color: var(--muted); line-height: 1.55; } .lead { max-width: 850px; font-size: 18px; } .eyebrow { margin: 0 0 10px; color: var(--blue); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; } .hero-card { min-width: 280px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: flex; gap: 14px; align-items: center; box-shadow: var(--shadow); } .hero-card small { display: block; color: var(--muted); margin-top: 4px; } .status-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 7px rgba(22, 131, 58, .12); } .layout { display: grid; grid-template-columns: minmax(360px, 520px) 1fr; gap: 24px; padding: 0 clamp(20px, 4vw, 56px) 44px; } .panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; } .tabs { display: flex; gap: 8px; margin-bottom: 22px; padding: 6px; background: #eef4ff; border-radius: 16px; } .tab { flex: 1; border: 0; background: transparent; border-radius: 12px; padding: 12px 10px; color: var(--muted); font-weight: 800; cursor: pointer; } .tab.is-active { background: white; color: var(--blue); box-shadow: 0 6px 20px rgba(16, 87, 200, .12); } .tab-content { display: none; } .tab-content.is-active { display: block; } .upload-box { border: 1px dashed #a8b8d4; background: #f9fbff; border-radius: 18px; padding: 18px; display: grid; gap: 16px; } .upload-box input[type=file] { display: none; } .upload-box label[for] { min-height: 96px; border: 1px solid var(--line); border-radius: 16px; display: grid; place-items: center; text-align: center; background: white; cursor: pointer; } .upload-box label span { display: block; color: var(--muted); margin-top: 6px; font-size: 13px; } button { border: 0; border-radius: 14px; padding: 13px 18px; background: var(--blue); color: white; font-weight: 800; cursor: pointer; } button:disabled { opacity: .55; cursor: wait; } button.ghost { background: white; color: var(--blue); border: 1px solid var(--line); } .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } label { color: var(--muted); font-size: 14px; font-weight: 700; } input, textarea { width: 100%; margin-top: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 12px; font: inherit; background: white; color: var(--ink); } textarea { min-height: 110px; resize: vertical; } .ai-grid { display: grid; gap: 14px; } .mini-form { border: 1px solid var(--line); border-radius: 18px; padding: 16px; background: #fbfdff; display: grid; gap: 12px; } .check { display: flex; gap: 8px; align-items: center; } .check input { width: auto; margin: 0; } .text-output { white-space: pre-wrap; background: #0e172a; color: #dbeafe; border-radius: 16px; padding: 16px; max-height: 320px; overflow: auto; } .message { margin-top: 16px; border-radius: 14px; padding: 14px; background: #fff7e6; color: #7a4d00; } .panel-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 18px; } .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0 20px; } .stats div { border: 1px solid var(--line); border-radius: 18px; background: #fbfdff; padding: 16px; } .stats span { display: block; font-size: 30px; font-weight: 900; } .stats small { color: var(--muted); } .viewer { min-height: 520px; border: 1px solid var(--line); background: #101827; border-radius: 20px; overflow: hidden; display: grid; place-items: center; } .viewer img { width: 100%; height: 100%; max-height: 680px; object-fit: contain; display: block; } .viewer.is-empty img { display: none; } .placeholder { color: #cbd5e1; text-align: center; padding: 40px; } .viewer:not(.is-empty) .placeholder { display: none; } .nav-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 16px 0; } #frameLabel { color: var(--muted); font-weight: 800; } .frame-info { border: 1px solid var(--line); border-radius: 18px; padding: 18px; background: #fbfdff; } .frame-info dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .frame-info dl div { padding-top: 12px; border-top: 1px solid var(--line); } dt { color: var(--muted); font-size: 13px; } dd { margin: 5px 0 0; font-weight: 900; } .history { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; } .history-item { padding: 12px; border: 1px solid var(--line); border-radius: 14px; margin-top: 10px; background: white; cursor: pointer; } .history-item strong { display: block; } .history-item small { color: var(--muted); } @media (max-width: 980px) { .hero { display: block; } .hero-card { margin-top: 20px; } .layout { grid-template-columns: 1fr; } .viewer { min-height: 360px; } } @media (max-width: 640px) { .stats { grid-template-columns: 1fr 1fr; } .form-grid { grid-template-columns: 1fr; } .tabs { flex-direction: column; } } .stats-note { margin: -4px 0 10px; color: var(--muted); font-size: 13px; font-weight: 800; } .frame-info dl { grid-template-columns: repeat(4, 1fr); } .frame-ai { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); } .frame-ai-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; margin-bottom: 12px; } .frame-ai-head h3 { margin-bottom: 4px; } .frame-ai-head small { color: var(--muted); line-height: 1.45; } .frame-ai-head button { white-space: nowrap; padding: 10px 14px; } .frame-ai-text { white-space: pre-wrap; background: #f4f8ff; border: 1px solid #d8e6ff; border-radius: 16px; padding: 16px; color: #172033; line-height: 1.6; min-height: 120px; } @media (max-width: 900px) { .frame-info dl { grid-template-columns: 1fr 1fr; } .frame-ai-head { display: block; } .frame-ai-head button { margin-top: 12px; } } @media (max-width: 520px) { .frame-info dl { grid-template-columns: 1fr; } }