:root{color:#3b1f1f;background:#fff6d6;font-family:Nunito,Segoe UI,sans-serif}*{box-sizing:border-box}body{margin:0;background:#fff6d6}button,input{font:inherit}.page{max-width:1100px;margin:0 auto;padding:0 16px 48px}.brand{position:relative;margin:0 -16px 8px;padding:28px 16px 22px;background:linear-gradient(90deg,#fff6d6,#f7c6d0);text-align:center}.signout-icon{position:absolute;top:12px;right:12px;display:grid;place-items:center;width:40px;height:40px;padding:0;border:0;border-radius:999px;background:transparent;color:#7a5555;cursor:pointer}.signout-icon svg{width:24px;height:24px}.brand img{width:168px;height:168px;object-fit:cover;background:#fff}.brand h1{margin:14px 0 0;color:#c62828;font-family:Cormorant Garamond,Georgia,serif;font-size:3rem;font-weight:700;letter-spacing:.08em;line-height:1}.brand p{max-width:16rem;margin:8px auto 0;color:#3b1f1f;font-size:1.05rem;font-weight:600;line-height:1.35}.search{position:sticky;top:0;z-index:5;margin-top:18px;padding:10px 0 12px;background:#fff6d6}.viewer .page{padding-top:16px}.search input{width:100%;padding:14px 16px;border:1px solid #e7c8c4;border-radius:12px;background:#fffcf7;color:#3b1f1f}.search input:focus{outline:2px solid #c62828;border-color:#c62828}.count{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:14px 4px 0;color:#7a5555;font-size:.95rem;font-weight:600}.chip{position:relative;overflow:hidden;border:1px solid #e7c8c4;border-radius:999px;background:#fffcf7;color:#7a5555;font-weight:700;padding:6px 12px;cursor:pointer;user-select:none;-webkit-user-select:none;touch-action:manipulation}.chip.on{border-color:#c62828;background:#c62828;color:#fffcf7}.chip .hold{position:absolute;inset:0 auto 0 0;width:0;background:#c6282847;transition:width var(--hold, 1s) linear}.chip-wrap,.chip-tools{display:inline-flex;align-items:center;gap:4px}.chip-drop,.chip-edit{display:grid;place-items:center;width:30px;height:30px;padding:0;border:1px solid #c62828;border-radius:999px;cursor:pointer}.chip-drop{background:#c62828;color:#fffcf7}.chip-edit{background:#fffcf7;color:#c62828}.chip-drop svg,.chip-edit svg{width:16px;height:16px}.confirm{position:fixed;top:0;right:0;bottom:0;left:0;z-index:30;display:grid;place-items:center;background:#3b1f1f59}.confirm-box{width:min(360px,calc(100% - 32px));padding:22px 20px;border-radius:16px;background:#fffcf7}.confirm p{margin:0 0 16px;color:#3b1f1f;font-weight:700}.confirm-actions{display:flex;justify-content:flex-end;gap:8px}.confirm-actions button{border:1px solid #c62828;border-radius:999px;background:#fffcf7;color:#c62828;font-weight:700;padding:8px 16px;cursor:pointer}.confirm-actions .danger{background:#c62828;color:#fffcf7}.chip.on .hold{background:#fffcf759}.chip .hold.on{width:100%}.chip.add{color:#c62828;border-style:dashed}.tag-list{display:flex;flex-wrap:wrap;gap:8px;padding:0 0 14px}.add-tag{display:inline-flex;align-items:center;gap:6px}.add-tag input{min-width:8rem;padding:6px 12px;border:1px solid #c62828;border-radius:999px;background:#fffcf7;color:#3b1f1f;font:inherit;font-weight:700}.chip-ok{width:30px;height:30px;padding:0;border:1px solid #c62828;border-radius:999px;background:#c62828;color:#fffcf7;font-size:1rem;font-weight:700;line-height:1;cursor:pointer}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}.card{min-height:140px;padding:0;border:0;border-radius:8px;overflow:hidden;background:#fffcf7;box-shadow:0 1px 4px #3b1f1f1f;cursor:pointer}.more-sentinel{height:1px}.card img,.sheet{display:block;width:100%;background:#000}.back,.more,.login button{border:1px solid #c62828;border-radius:999px;background:#fffcf7;color:#c62828;font-weight:700;padding:10px 18px;cursor:pointer}.actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.login{max-width:420px;margin:22px auto 0}.login label{display:block;margin:14px 0 6px;color:#7a5555;font-size:.92rem;font-weight:700}.login input{width:100%;padding:14px 16px;border:1px solid #e7c8c4;border-radius:12px;background:#fffcf7;color:#3b1f1f}.login button{margin-top:16px}.login .error{color:#c62828}.viewer{position:fixed;top:0;right:0;bottom:0;left:0;z-index:10;overflow:auto;background:#fff6d6}.zoom{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20;background:#000;touch-action:none;overflow:hidden}.zoom img{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:contain;transform-origin:center center}.zoom-close{position:absolute;top:16px;left:16px;z-index:21;border:1px solid #c62828;border-radius:999px;background:#fffcf7;color:#c62828;font-weight:700;padding:10px 18px;cursor:pointer}.sheet{margin-top:16px;border-radius:8px;cursor:zoom-in}.stitch{margin-top:16px;padding:0 18px 4px;background:#fffcf7;border-radius:16px}.stitch summary{padding:14px 0;color:#c62828;font-weight:700;cursor:pointer}.pieces{list-style:none;margin:0;padding:0 0 8px}.pieces li{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid #f3e1d4;font-weight:700}.pieces li:last-child{border-bottom:0}.pieces .total{color:#c62828}@media(min-width:800px){.grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(min-width:1100px){.grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
