:root { color-scheme: light; font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; color: #17213a; background: #f3f7ff; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 10% 0%, #ddebff, transparent 32rem), #f5f8fe; }
button, input { font: inherit; }
button, .button { border: 0; border-radius: 12px; padding: .75rem 1rem; cursor: pointer; text-decoration: none; display: inline-block; text-align: center; }
button:disabled { opacity: .55; cursor: wait; }
.primary { background: #2369eb; color: white; box-shadow: 0 5px 16px #2369eb38; }
.secondary { color: #234; background: #edf2fa; }
.danger { color: #a12630; background: #fff0f1; }
.welcome-card, .login-card { width: min(92vw, 460px); margin: 10vh auto; padding: 2.2rem; background: #fff; border: 1px solid #e5ebf4; border-radius: 24px; box-shadow: 0 20px 60px #254a8418; }
.welcome-card { text-align: center; }
.mark { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 1rem; border-radius: 18px; color: white; background: linear-gradient(135deg, #2774f2, #6f46e8); font-weight: 800; }
h1 { margin: .4rem 0 .8rem; font-size: clamp(1.45rem, 5vw, 2rem); }
.hint { color: #60708a; line-height: 1.7; }
form { display: grid; gap: 1rem; }
label { display: grid; gap: .45rem; font-weight: 650; }
input { width: 100%; border: 1px solid #ccd6e6; border-radius: 11px; padding: .8rem; background: white; }
input:focus { outline: 3px solid #2874f226; border-color: #2874f2; }
.message { min-height: 1.4em; color: #a12630; }
.topbar { position: sticky; top: 0; z-index: 2; padding: .8rem max(4vw, 1rem); display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: #ffffffee; backdrop-filter: blur(10px); border-bottom: 1px solid #e1e8f2; }
.topbar div { display: flex; flex-wrap: wrap; align-items: baseline; gap: .8rem; }
.topbar span { color: #65718a; font-size: .9rem; }
.dashboard { width: min(1100px, 92vw); margin: 2rem auto 4rem; display: grid; gap: 2rem; }
.panel { padding: clamp(1.2rem, 3vw, 2rem); border-radius: 20px; background: white; border: 1px solid #e2e9f3; }
.upload-form { grid-template-columns: 1fr 1fr; align-items: end; }
.upload-form button { grid-column: 1 / -1; }
.section-title { display: flex; justify-content: space-between; align-items: center; }
.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.model-card { display: grid; gap: 1rem; padding: 1.2rem; border-radius: 18px; border: 1px solid #dde5f1; background: white; box-shadow: 0 8px 24px #2d47740d; }
.model-card h3 { margin: 0 0 .5rem; }
.status, .meta { margin: .4rem 0; color: #5f6e85; }
.progress { height: 8px; overflow: hidden; border-radius: 99px; background: #e9eef6; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, #2774f2, #7a4be9); transition: width .3s; }
.actions { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; }
.actions button, .actions .button { padding: .55rem .75rem; font-size: .9rem; }
.empty { grid-column: 1 / -1; padding: 2rem; text-align: center; color: #69788f; background: #fff; border-radius: 16px; }
@media (max-width: 650px) { .upload-form { grid-template-columns: 1fr; } .upload-form button { grid-column: auto; } }
