:root{--tg-theme-bg-color: #ffffff;--tg-theme-text-color: #16181d;--tg-theme-hint-color: #8a9099;--tg-theme-secondary-bg-color: #f4f5f7;--tg-theme-button-color: #1f2430;--tg-theme-button-text-color: #ffffff;--tg-theme-link-color: #1f2430;--hairline: rgba(60, 60, 67, .14)}@media(prefers-color-scheme:dark){:root{--tg-theme-bg-color: #0b0c0e;--tg-theme-text-color: #f2f3f5;--tg-theme-hint-color: #8b9097;--tg-theme-secondary-bg-color: #17191d;--tg-theme-button-color: #f2f3f5;--tg-theme-button-text-color: #0b0c0e;--tg-theme-link-color: #cdd2d8;--hairline: rgba(255, 255, 255, .14)}}*{box-sizing:border-box;margin:0;padding:0}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background:var(--tg-theme-bg-color);color:var(--tg-theme-text-color);min-height:100dvh;font-size:15px;-webkit-font-smoothing:antialiased}#root{min-height:100dvh}.app-shell{max-width:480px;margin:0 auto;min-height:100dvh;position:relative;background:var(--tg-theme-bg-color)}.screen{padding:16px}.header{display:flex;align-items:center;gap:10px;padding:12px 16px;padding-top:calc(12px + env(safe-area-inset-top));background:var(--tg-theme-bg-color);border-bottom:1px solid var(--hairline);position:sticky;top:0;z-index:10}.header h1{font-size:15px;font-weight:600;flex:1}.header .back{background:none;border:none;cursor:pointer;font-size:20px;color:var(--tg-theme-link-color)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:13px 20px;border-radius:12px;border:none;font-size:16px;font-weight:600;cursor:pointer;transition:opacity .15s}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-primary{background:var(--tg-theme-button-color);color:var(--tg-theme-button-text-color)}.btn-secondary{background:var(--tg-theme-secondary-bg-color);color:var(--tg-theme-text-color)}.btn-danger{background:#ff3b30;color:#fff}.btn-full{width:100%}.grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:12px}.work-card{border-radius:12px;overflow:hidden;background:var(--tg-theme-secondary-bg-color);cursor:pointer;position:relative;transition:transform .1s}.work-card:active{transform:scale(.97)}.work-card img{width:100%;aspect-ratio:1;object-fit:cover;display:block}.work-card .info{padding:8px 10px}.work-card .title{font-size:13px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.work-card .meta{font-size:11px;color:var(--tg-theme-hint-color);margin-top:2px}.work-card .check{position:absolute;top:8px;right:8px;width:24px;height:24px;border-radius:50%;border:2px solid #fff;background:#0000004d;display:flex;align-items:center;justify-content:center;color:#fff;font-size:13px}.work-card.selected .check{background:var(--tg-theme-button-color)}.work-card.selected{outline:2.5px solid var(--tg-theme-button-color)}.empty-state{text-align:center;padding:60px 20px;color:var(--tg-theme-hint-color)}.empty-state .icon{font-size:48px;margin-bottom:12px}.empty-state p{font-size:15px}.form-group{margin-bottom:14px}.form-group label{display:block;font-size:13px;color:var(--tg-theme-hint-color);margin-bottom:4px}.form-group input,.form-group textarea{width:100%;padding:12px;border-radius:10px;border:1px solid var(--hairline);background:var(--tg-theme-secondary-bg-color);color:var(--tg-theme-text-color);font-size:16px}.form-group textarea{min-height:80px;resize:vertical;font-family:inherit;line-height:1.5}.image-upload{width:100%;aspect-ratio:1;border-radius:12px;border:2px dashed var(--hairline);display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;margin-bottom:16px;overflow:hidden;background:var(--tg-theme-secondary-bg-color)}.image-upload img{width:100%;height:100%;object-fit:cover}.image-upload .placeholder{color:var(--tg-theme-hint-color);text-align:center}.image-upload .placeholder .icon{font-size:40px;margin-bottom:8px}.work-detail img{width:100%;border-radius:12px}.analysis-section{margin-bottom:24px}.analysis-section h2{font-size:15px;font-weight:700;margin-bottom:10px;padding-bottom:6px;border-bottom:1px solid var(--hairline)}.analysis-section p{font-size:14px;line-height:1.6}.analysis-section ul{padding-left:0;list-style:none}.analysis-section ul li{font-size:14px;line-height:1.5;padding:6px 0 6px 16px;position:relative}.analysis-section ul li:before{content:"▸";position:absolute;left:0;color:var(--tg-theme-link-color)}.analysis-section ol{padding-left:20px}.analysis-section ol li{padding:4px 0;font-size:14px;line-height:1.5}.work-in-analysis{display:flex;gap:12px;align-items:flex-start;margin-bottom:16px;background:var(--tg-theme-secondary-bg-color);border-radius:12px;padding:12px}.work-in-analysis img{width:72px;height:72px;border-radius:8px;object-fit:cover;flex-shrink:0}.work-in-analysis .content .title{font-weight:600;font-size:14px}.work-in-analysis .content .medium{font-size:12px;color:var(--tg-theme-hint-color);margin-top:2px}.work-in-analysis .content .desc{font-size:13px;margin-top:6px;line-height:1.5}.cta-block{background:var(--tg-theme-secondary-bg-color);border-radius:12px;padding:16px;margin-top:24px;font-size:14px;line-height:1.6}.cta-block .title{font-weight:700;text-align:center;margin-bottom:12px;font-size:13px;color:var(--tg-theme-hint-color);letter-spacing:.05em}.badge{display:inline-block;background:var(--tg-theme-button-color);color:var(--tg-theme-button-text-color);border-radius:20px;padding:2px 10px;font-size:12px;font-weight:600}.sticky-bottom{position:sticky;bottom:0;left:0;right:0;padding:12px 16px;padding-bottom:calc(12px + env(safe-area-inset-bottom));background:var(--tg-theme-bg-color);border-top:1px solid var(--hairline)}.loading{text-align:center;padding:40px;color:var(--tg-theme-hint-color)}.history-item{padding:12px;border-radius:10px;background:var(--tg-theme-secondary-bg-color);margin-bottom:10px;cursor:pointer}.history-item .date{font-size:12px;color:var(--tg-theme-hint-color)}.history-item .works-count{font-size:14px;font-weight:500;margin-top:4px}.select-count{text-align:center;font-size:14px;color:var(--tg-theme-hint-color);margin-bottom:12px}.context-input{margin-bottom:80px}.bottom-nav{position:fixed;bottom:0;left:50%;transform:translate(-50%);width:100%;max-width:480px;display:flex;background:var(--tg-theme-bg-color);border-top:1px solid var(--hairline);padding-bottom:env(safe-area-inset-bottom);z-index:20}.bottom-nav a{flex:1;text-align:center;padding:10px 4px 8px;font-size:11px;color:var(--tg-theme-hint-color);text-decoration:none;line-height:1.5}.bottom-nav a .ic{display:block;font-size:20px}.bottom-nav a.active{color:var(--tg-theme-text-color);font-weight:600}.has-nav{padding-bottom:64px}a{color:var(--tg-theme-link-color)}
