@import"https://fonts.googleapis.com/css2?family=Inter:wght@400;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap";:root{font-family:system-ui,-apple-system,sans-serif;color:#111;background:#f6f7f9;margin:0}body{margin:0}.app{max-width:480px;margin:0 auto;min-height:100vh;background:#fff}.header{padding:12px 16px;border-bottom:1px solid #e5e7eb;font-weight:600}.header a{color:inherit;text-decoration:none}.page{padding:16px}.description,.hint,.status{color:#555}.error{color:#b91c1c}.carousel{display:flex;gap:12px;overflow-x:auto;padding:8px 0 16px;scroll-snap-type:x mandatory}.card{flex:0 0 85%;scroll-snap-align:start;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden;background:#fafafa}.card img{width:100%;display:block;aspect-ratio:1;object-fit:cover}.card p{margin:12px}.card-text p{margin:8px 12px;line-height:1.4;word-break:break-word}.card-placeholder{width:100%;aspect-ratio:1;background:linear-gradient(135deg,#e5e7eb,#f3f4f6)}button{border:0;border-radius:10px;padding:12px 16px;background:#2563eb;color:#fff;font-size:16px}button:disabled{opacity:.5}.header{display:flex;justify-content:space-between;align-items:center}.header-right{display:flex;gap:12px;align-items:center;font-weight:400}.linkish{background:transparent;color:#2563eb;padding:0;font-size:14px}.auth-error{margin:0 16px}.create-row{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0;align-items:center}.create-row input{flex:1 1 140px;border:1px solid #e5e7eb;border-radius:10px;padding:10px 12px;font-size:15px}.file-label{display:inline-flex;align-items:center;gap:8px;padding:10px 16px;border:1px solid #d1d5db;border-radius:10px;background:#f9fafb;cursor:pointer;max-width:100%}.file-label:hover{background:#f3f4f6}.file-label-text{font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:200px}.file-label input[type=file]{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.pub-list{list-style:none;padding:0;margin:0}.pub-list li{border:1px solid #e5e7eb;border-radius:12px;padding:12px;margin-bottom:10px}.pub-actions{margin-top:6px;display:flex;gap:4px}.account-list{list-style:none;padding:0}.account-list label{display:flex;gap:8px;align-items:center;margin-bottom:8px}.platform-row label{display:flex;gap:6px;align-items:center;margin-right:12px;font-size:15px}.card-editor{margin-top:20px;padding-top:12px;border-top:1px solid #e5e7eb}.card-editor h3{margin:0 0 8px}.publish-block{margin-top:20px;padding-top:12px;border-top:1px solid #e5e7eb}.publish-block h3{margin:0 0 8px}.publish-block h4{margin:12px 0 6px}.page-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.page-head h2{margin:0;flex:1;min-width:0}.preview-clean{padding-top:20px}.preview-clean .carousel{padding-top:16px}.card-add{margin-bottom:12px}.card-text-input{width:100%;box-sizing:border-box;border:1px solid #e5e7eb;border-radius:10px;padding:10px 12px;font-size:15px;font-family:inherit;resize:vertical;min-height:72px}.card-add-meta{display:flex;justify-content:flex-end;margin:4px 0 8px}.card-file-preview{max-width:120px;max-height:120px;border-radius:8px;border:1px solid #e5e7eb;object-fit:cover}.card-manage-list{list-style:none;padding:0;margin:12px 0 0}.card-manage-item{border:1px solid #e5e7eb;border-radius:12px;padding:12px;margin-bottom:10px}.card-manage-head{display:flex;gap:8px;align-items:baseline;margin-bottom:6px}.card-manage-text{margin:0 0 8px;white-space:pre-wrap;word-break:break-word}.card-manage-text.styled p{margin:4px 0;line-height:1.4;word-break:break-word}.card-manage-item textarea{background:#fff}.card-order-hint{margin:8px 12px 12px;color:#9ca3af;font-size:13px}.card-manage-item .create-row,.card-manage-item textarea{margin-top:8px}.card-manage-item input[type=file]{font-size:14px}.style-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:8px 0;padding:8px;border:1px dashed #e5e7eb;border-radius:8px}.style-row select,.style-row input[type=color]{border:1px solid #e5e7eb;border-radius:8px;padding:6px 8px;font-size:14px}.style-row input[type=color]{width:40px;height:32px;padding:2px;cursor:pointer}.template-picker{margin:16px 0;padding:12px 0;border-top:1px solid #e5e7eb;border-bottom:1px solid #e5e7eb}.template-picker h3{margin:0 0 6px}.template-grid{list-style:none;padding:0;margin:12px 0 0;display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.template-item{margin:0}.template-btn{width:100%;display:flex;flex-direction:column;gap:4px;align-items:stretch;background:#fff;color:#111;border:2px solid #e5e7eb;border-radius:12px;padding:8px;font-size:14px;text-align:left}.template-item.selected .template-btn{border-color:#2563eb;box-shadow:0 0 0 1px #2563eb}.template-thumb{width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px;display:block;background:#f3f4f6}.template-thumb.placeholder{background:linear-gradient(135deg,#e5e7eb,#d1d5db)}.card.with-bg{position:relative;background-size:cover;background-position:center;min-height:280px;display:flex;flex-direction:column;justify-content:flex-end}.card-bg-overlay{position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(to top,rgba(0,0,0,.45),transparent 55%);pointer-events:none}.card-fg-media{position:relative;z-index:1;max-height:50%;overflow:hidden}.card-fg-media img{width:100%;max-height:160px;object-fit:cover}.card-content{position:relative;z-index:2;padding:8px 0 4px;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.35)}.card.with-bg .card-order-hint{color:#ffffffd9;margin:4px 12px 8px}.card.with-bg .card-text p{color:inherit}.templates-filter,.bg-mode-tabs{display:flex;gap:8px;margin:12px 0}.tab{background:#f3f4f6;color:#111;border:1px solid #e5e7eb;padding:8px 12px;font-size:14px}.tab.active{background:#2563eb;color:#fff;border-color:#2563eb}.badge{display:inline-block;font-size:12px;padding:2px 8px;border-radius:999px;background:#eef2ff;color:#3730a3;width:fit-content}.template-meta{display:flex;flex-direction:column;gap:4px;margin-top:8px}.template-actions{display:flex;gap:12px;margin-top:4px}.linkish.danger{color:#b91c1c}.template-edit-form{display:flex;flex-direction:column;gap:14px}.template-edit-form label,.style-row label,.gradient-fields label{display:flex;flex-direction:column;gap:4px;font-size:14px}.template-edit-form input[type=text],.template-edit-form textarea,.style-row select{border:1px solid #e5e7eb;border-radius:10px;padding:10px 12px;font-size:15px;font-family:inherit}.bg-fields,.style-fields{border:1px solid #e5e7eb;border-radius:12px;padding:12px;margin:0}.gradient-fields{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end}.bg-preview{width:100%;height:80px;border-radius:10px;border:1px solid #e5e7eb}.bg-upload-preview{max-width:160px;max-height:160px;border-radius:10px;border:1px solid #e5e7eb;object-fit:cover}.style-row{border-top:1px dashed #e5e7eb;padding:10px 0;display:grid;grid-template-columns:1fr 1fr;gap:8px}.style-row strong{grid-column:1 / -1}.form-actions{display:flex;gap:12px;align-items:center}
