:root { --bg-a: #f2f9f4; --bg-b: #f8fcf9; --text-main: #1e293b; --text-muted: #617085; --card-bg: rgba(255, 255, 255, 0.95); --card-border: rgba(130, 160, 140, 0.25); --primary: #287f55; --primary-soft: #e8f6ee; --primary-alt: #2f9b8a; --accent-soft: #d5a25c; --success: #0f9f6e; --danger: #c53d56; --shadow: 0 10px 24px rgba(30, 84, 49, 0.08); --radius-lg: 20px; --radius-md: 14px; } body{-webkit-user-select:none;-moz-user-select:-moz-none; -ms-user-select:none;user-select:none} * { box-sizing: border-box; margin: 0; padding: 0; } button, [role="button"], .btn, .preset-card, .upload-box, select, input { -webkit-tap-highlight-color: transparent; } body { font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif; color: var(--text-main); min-height: 100vh; background: radial-gradient(circle at 8% 10%, #def2e4 0%, transparent 34%), radial-gradient(circle at 90% 12%, #e7f7f0 0%, transparent 26%), radial-gradient(circle at 50% 0%, rgba(213, 162, 92, 0.09) 0%, transparent 18%), linear-gradient(145deg, var(--bg-a), var(--bg-b)); } .app-shell { --shell-pad: clamp(12px, 2vw, 24px); width: min(1160px, 100vw); margin: 0 auto; min-height: 100vh; padding: 12px var(--shell-pad) 18px; display: flex; flex-direction: column; gap: 16px; } .card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-lg); box-shadow: var(--shadow); backdrop-filter: blur(5px); } .hero { margin-inline: 0; padding: 22px 28px; display: flex; justify-content: center; background: #ffffff; position: relative; } .hero::before { content: none; } .hero-badge { display: inline-block; margin-bottom: 12px; padding: 6px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 12px; font-weight: 700; letter-spacing: 0.2px; } .hero h1 { font-size: clamp(31px, 4.8vw, 45px); margin: 0; line-height: 1.02; letter-spacing: -0.025em; font-weight: 800; color: #111827; } .hero p { color: var(--text-muted); font-size: 15px; } .hero-brand-block { display: grid; gap: 7px; justify-items: center; width: min(1060px, 100%); margin: 0 auto; padding: 0; text-align: center; } .hero-subtitle { margin: 0; color: #5f6978; font-size: clamp(13px, 1.9vw, 17px); font-weight: 500; letter-spacing: -0.005em; text-align: center; } .main-grid { display: grid; gap: 18px; } .control-card, .result-card { padding: 22px; } .control-card h2, .result-header h2 { font-size: 21px; margin-bottom: 14px; } .upload-box { border: 1.5px dashed #b6cfbe; background: #f7fcf8; border-radius: var(--radius-md); padding: 14px; width: 100%; max-width: 760px; margin: 0 auto; text-align: center; cursor: pointer; display: grid; gap: 10px; justify-items: center; align-content: center; min-height: 220px; position: relative; overflow: hidden; transition: border-color 0.15s ease, background 0.15s ease; } .upload-box.has-image { border-color: #67a77f; } .upload-box:focus-visible { outline: none; box-shadow: none; } #uploadPreviewImage { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #eef3fb; display: none; } .upload-placeholder { position: relative; z-index: 1; display: grid; gap: 6px; justify-items: center; width: 100%; } .upload-title { font-weight: 700; margin-bottom: 4px; } .upload-subtitle { color: var(--text-muted); font-size: 14px; margin-bottom: 2px; } .upload-box.has-image .upload-subtitle { color: #dbe8ff; } .section-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; } .section-row h3 { font-size: 17px; } .hint { color: #5f7499; font-size: 12px; font-weight: 600; } .helper-text { color: var(--text-muted); font-size: 13px; margin-top: 6px; } code { font-family: "Consolas", "Courier New", monospace; font-size: 12px; background: #eef4ff; color: #31568a; padding: 1px 5px; border-radius: 6px; } .preset-categories { margin-top: 12px; display: grid; gap: 12px; } .preset-category { border: 1px solid #dbe4f3; background: #fcfdff; border-radius: 12px; padding: 12px; } .preset-category h4 { font-size: 14px; margin-bottom: 8px; color: #274a7f; } .preset-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .preset-placeholder { border: 1px dashed #bfd0ea; border-radius: 12px; background: #f7faff; padding: 16px; text-align: center; } .preset-placeholder-title { font-weight: 700; color: #2c4f7d; } .preset-placeholder-subtitle { color: #5f7499; font-size: 13px; margin-top: 6px; } .preset-card { border: 1px solid #d7e2f4; border-radius: 11px; background: #fff; padding: 8px; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease; } .preset-card:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(32, 83, 160, 0.12); border-color: #a7c0e9; } .preset-card.active { border-color: #89b89a; box-shadow: 0 0 0 3px rgba(96, 146, 113, 0.18); } .preset-empty { grid-column: 1 / -1; border: 1px dashed #cfdbef; border-radius: 9px; padding: 12px; text-align: center; color: #5f7499; font-size: 13px; background: #f7faff; } .preset-thumb { width: 100%; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: linear-gradient(140deg, #dbe7f8, #eff5ff); display: grid; place-items: center; color: #4d6488; font-size: 12px; text-align: center; } .preset-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; } .preset-name { margin-top: 6px; font-size: 12px; font-weight: 600; color: #344a70; text-align: center; } .field-grid { margin-top: 16px; display: grid; grid-template-columns: 1fr; gap: 10px; } .field { display: grid; gap: 6px; } .field span { font-size: 12px; font-weight: 600; color: #466086; } .required-star { color: #d23f57; font-weight: 700; margin-left: 2px; } .field input, .field select { width: 100%; border: 1px solid #d4def0; border-radius: 10px; font: inherit; font-size: 16px; min-height: 46px; padding: 10px 12px; background: #fff; color: var(--text-main); transition: border-color 0.15s ease, box-shadow 0.15s ease; } .field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, #5877a0 50%), linear-gradient(135deg, #5877a0 50%, transparent 50%); background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px); background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 34px; } .field input:focus, .field select:focus { outline: none; border-color: #9cc6aa; box-shadow: none; } .action-row { margin-top: 16px; display: flex; gap: 10px; flex-direction: column; } .btn { border: 0; border-radius: 11px; padding: 11px 16px; font: inherit; font-weight: 700; cursor: pointer; transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease; } .upload-box:focus, .upload-box:focus-visible, .preset-card:focus, .preset-card:focus-visible, .btn:focus, .btn:focus-visible, .preset-sheet-backdrop:focus { outline: none; box-shadow: none; } .action-row .btn { width: 100%; } .btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; } .btn-primary { color: #fff; background: linear-gradient(135deg, #2f9561, #2f9b8a); box-shadow: 0 8px 18px rgba(31, 113, 69, 0.24); } .btn-primary:not(:disabled):hover { transform: translateY(-1px); } .btn-secondary { background: #e9f0ff; color: #1d4f99; } .btn-ghost { border: 1px solid #d5e0f3; background: #fff; color: #35537f; } .status-text { margin-top: 10px; font-size: 13px; min-height: 18px; color: var(--text-muted); } .status-text.error { color: var(--danger); } .status-text.success { color: var(--success); } .selected-chip { margin-top: 12px; display: inline-flex; padding: 7px 12px; border-radius: 999px; background: #edf8f0; color: #406a4d; font-size: 12px; font-weight: 600; width: fit-content; } .preset-sheet { position: fixed; inset: 0; z-index: 50; display: grid; align-items: end; opacity: 0; pointer-events: none; transition: opacity 0.2s ease; } .preset-sheet-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(15, 23, 42, 0.48); opacity: 0; transition: opacity 0.2s ease; } .preset-sheet-panel { position: relative; background: rgba(255, 255, 255, 0.98); border-radius: 20px 20px 0 0; border: 1px solid #d4e0f3; border-bottom: 0; width: min(960px, 100%); margin: 0 auto; max-height: 82vh; overflow: auto; padding: 10px 14px 20px; box-shadow: 0 -20px 38px rgba(21, 56, 110, 0.24); transform: translateY(20px); opacity: 0; transition: transform 0.25s ease, opacity 0.25s ease; will-change: transform, opacity; } .preset-sheet.is-open { opacity: 1; pointer-events: auto; } .preset-sheet.is-open .preset-sheet-backdrop { opacity: 1; } .preset-sheet.is-open .preset-sheet-panel { transform: translateY(0); opacity: 1; } .preset-sheet-handle { width: 52px; height: 5px; border-radius: 999px; background: #b9c7df; margin: 2px auto 12px; } .sheet-close-btn { margin-top: 12px; width: 100%; } body.sheet-open { overflow: hidden; } .hidden { display: none; } .site-footer { margin-top: auto; margin-inline: calc(-1 * var(--shell-pad)); border-radius: 0; border-top: 1px solid #dbe9df; border-left: 0; border-right: 0; border-bottom: 0; background: #ffffff; padding: 12px var(--shell-pad) 14px; text-align: center; } .footer-note { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.01em; color: #5a6b62; } .result-header { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 14px; } #resultMeta { color: var(--text-muted); font-size: 13px; } .result-primary { border: 1px solid #d7e2f4; border-radius: 14px; padding: 16px; background: #fcfdff; } .result-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; } .result-title h3 { font-size: 20px; } .confidence-pill { padding: 5px 10px; border-radius: 999px; background: #edf4ff; color: #234f8d; font-weight: 700; font-size: 12px; } .detail-grid { margin-top: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .detail-box { border: 1px solid #e2e8f4; border-radius: 10px; padding: 10px; background: #fff; } .detail-box h4 { font-size: 12px; color: #54719a; margin-bottom: 4px; } .detail-box p, .detail-box ul { font-size: 14px; line-height: 1.45; color: #29435f; } .detail-box ul { margin-left: 16px; } .considered-box { margin-top: 12px; border-top: 1px solid #e3ebf5; padding-top: 12px; } .considered-box h4 { font-size: 12px; color: #54719a; margin-bottom: 8px; } .considered-list { display: flex; flex-wrap: wrap; gap: 8px; } .considered-item { display: inline-flex; align-items: center; border: 1px solid #dbe6f4; border-radius: 999px; background: #f8fbff; color: #3f577b; font-size: 12px; font-weight: 600; padding: 5px 10px; } .prediction-group { margin-top: 16px; } .prediction-group h3 { font-size: 17px; margin-bottom: 10px; } .prediction-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } .prediction-card { border: 1px solid #dce5f5; border-radius: 12px; background: #fff; padding: 12px; display: grid; gap: 8px; } .prediction-card h4 { font-size: 15px; } .prediction-card p { font-size: 13px; color: #3f5a7e; } .confidence-track { width: 100%; height: 8px; background: #e8eef9; border-radius: 999px; overflow: hidden; } .confidence-fill { height: 100%; background: linear-gradient(90deg, #2f9561, #5aae78); } .prediction-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #4f6688; } .spinner { width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, 0.45); border-top-color: #fff; border-radius: 50%; display: inline-block; vertical-align: middle; animation: spin 0.8s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } @media (min-width: 740px) { .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .prediction-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .action-row { flex-direction: row; } .action-row .btn { width: auto; } .preset-sheet-panel { padding: 12px 20px 22px; } } @media (min-width: 1060px) { .app-shell { padding-inline: clamp(20px, 3vw, 30px); } .field-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .prediction-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } .preset-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .upload-box { max-width: 820px; min-height: 240px; } } @media (max-width: 740px) { .app-shell { --shell-pad: 10px; padding-top: 10px; padding-inline: var(--shell-pad); } .hero { padding: 16px; } .control-card, .result-card { padding: 16px; } .field-grid, .prediction-list, .detail-grid { grid-template-columns: 1fr; } .result-header { flex-direction: column; align-items: flex-start; } .result-title { flex-direction: column; align-items: flex-start; } .action-row { flex-direction: column; } .upload-box { max-width: none; min-height: 220px; } .field select { min-height: 48px; border-radius: 12px; } .hero h1 { font-size: clamp(30px, 9vw, 38px); } .hero-subtitle { font-size: 15px; } .site-footer { padding: 12px var(--shell-pad) 13px; } .footer-note { font-size: 12px; } }