:root{--purple: #8b5cf6;--purple-dark: #7c3aed;--bg: #faf8ff;--surface: #ffffff;--card: #ffffff;--tint: #f0ebfb;--photo-bg: #f3effa;--text: #1f1933;--muted: #8b86a0;--border: #ece8f5;--danger: #e04a59;color-scheme:light}:root[data-theme=dark]{--bg: #14111c;--surface: #1e1a29;--card: #1e1a29;--tint: #2a2140;--photo-bg: #241d33;--text: #ece9f5;--muted: #9a93ad;--border: #2e2940;color-scheme:dark}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background:var(--bg);color:var(--text);transition:background .2s ease,color .2s ease}.center{display:grid;place-items:center;height:100%}.muted{color:var(--muted)}.small{font-size:.8rem}.error{color:var(--danger);font-size:.9rem}.btn{border:1px solid var(--border);background:var(--surface);color:var(--text);padding:.55rem .9rem;border-radius:10px;font-size:.95rem;cursor:pointer}.btn.primary{background:var(--purple);border-color:var(--purple);color:#fff}.btn.primary:hover{background:var(--purple-dark)}.btn.ghost{background:transparent;border-color:transparent}.btn:disabled{opacity:.6;cursor:default}.icon-btn{border:none;background:transparent;cursor:pointer;font-size:1.05rem;padding:.3rem;border-radius:8px}.icon-btn:hover{background:var(--border)}.login-wrap{display:grid;place-items:center;height:100%;padding:1rem}.login-card{background:var(--card);padding:2rem;border-radius:18px;width:100%;max-width:340px;display:flex;flex-direction:column;gap:.7rem;box-shadow:0 10px 40px #7c3aed1f;text-align:center}.login-logo{font-size:2.6rem}.login-card h1{margin:0;font-size:1.4rem}.login-card input{padding:.7rem;border:1px solid var(--border);border-radius:10px;font-size:1rem;background:var(--surface);color:var(--text)}.app{min-height:100%;padding-bottom:5rem}.topbar{position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:space-between;padding:.8rem 1rem;background:var(--surface);border-bottom:1px solid var(--border)}.brand{font-weight:700;font-size:1.1rem}.topbar-actions{display:flex;gap:.3rem}.toolbar{padding:.8rem 1rem 0}.search{width:100%;padding:.7rem 1rem;border:1px solid var(--border);border-radius:12px;font-size:1rem;background:var(--surface);color:var(--text)}.chips{display:flex;gap:.4rem;overflow-x:auto;padding:.5rem 0 .7rem;flex-wrap:wrap}.chip{white-space:nowrap;border:1px solid var(--border);background:var(--surface);color:var(--text);padding:.4rem .8rem;border-radius:999px;cursor:pointer;font-size:.9rem}.chip.active{background:var(--purple);color:#fff;border-color:var(--purple)}.chip.folder{background:var(--tint);border-color:var(--border)}.chip .count{opacity:.8;font-size:.78rem;background:#8b5cf62e;color:var(--purple);padding:.05rem .4rem;border-radius:999px;margin-left:.2rem}.breadcrumb{display:flex;align-items:center;flex-wrap:wrap;gap:.1rem;padding-top:.7rem;font-size:.95rem}.crumb{border:none;background:transparent;color:var(--purple);cursor:pointer;padding:.15rem .3rem;border-radius:6px;font-size:.95rem}.crumb:hover{background:var(--border)}.crumb.current{color:var(--text);font-weight:600;cursor:default}.crumb-sep{color:var(--muted);padding:0 .1rem}.tree-list{list-style:none;padding:0;margin:0 0 1rem}.tree-list li{border-bottom:1px solid var(--border)}.tree-row{display:flex;justify-content:space-between;align-items:center;padding:.55rem 0;gap:.5rem}.tree-name{min-width:0}.tree-twig{color:var(--muted);margin-right:.3rem}.grid{display:grid;gap:.9rem;padding:.5rem 1rem;grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}.card{background:var(--card);border-radius:14px;overflow:hidden;border:1px solid var(--border);display:flex;flex-direction:column}.card-photo{aspect-ratio:1;background:var(--photo-bg);cursor:pointer}.card-photo img{width:100%;height:100%;object-fit:cover;display:block}.no-photo{width:100%;height:100%;display:grid;place-items:center;font-size:2.5rem}.card-body{padding:.6rem .7rem;flex:1}.card-title{font-weight:600;font-size:.95rem}.card-sub{color:var(--muted);font-size:.82rem;margin-top:.15rem}.room-tag{display:inline-block;margin-top:.4rem;font-size:.72rem;background:var(--tint);color:var(--purple);padding:.15rem .5rem;border-radius:999px}.card-actions{display:flex;justify-content:flex-end;gap:.2rem;padding:0 .4rem .4rem}.empty{grid-column:1 / -1;text-align:center;color:var(--muted);padding:3rem 1rem}.empty-emoji{font-size:3rem}.fab{position:fixed;right:1.2rem;bottom:1.5rem;width:58px;height:58px;border-radius:50%;border:none;background:var(--purple);color:#fff;font-size:2rem;line-height:1;cursor:pointer;box-shadow:0 8px 24px #7c3aed66}.fab:hover{background:var(--purple-dark)}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#1f193373;display:grid;place-items:end center;z-index:20}.modal{background:var(--surface);width:100%;max-width:480px;max-height:92vh;overflow-y:auto;border-radius:18px 18px 0 0;padding:1.2rem}@media (min-width: 520px){.modal-backdrop{place-items:center}.modal{border-radius:18px}}.modal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:.5rem}.modal-head h2{margin:0;font-size:1.2rem}.shoe-form,.room-form{display:flex;flex-direction:column;gap:.7rem}.shoe-form label,.room-form label{display:flex;flex-direction:column;gap:.25rem;font-size:.85rem;color:var(--muted)}.shoe-form input,.shoe-form select,.shoe-form textarea,.room-form input{padding:.6rem;border:1px solid var(--border);border-radius:10px;font-size:1rem;color:var(--text);background:var(--surface)}.row{display:flex;gap:.6rem}.row label{flex:1}.photo-drop{border:2px dashed var(--border);border-radius:14px;background:var(--bg);aspect-ratio:16/10;cursor:pointer;display:grid;place-items:center;color:var(--muted);overflow:hidden;padding:0}.photo-drop.has-photo{aspect-ratio:auto;background:#1c1530}.photo-drop.has-photo img{width:100%;height:auto;max-height:60vh;object-fit:contain;display:block}.photo-drop img{width:100%;height:100%;object-fit:cover}.modal-actions{display:flex;justify-content:flex-end;gap:.5rem;margin-top:.3rem}.room-list{list-style:none;padding:0;margin:0 0 1rem}.room-list li{display:flex;justify-content:space-between;align-items:center;padding:.6rem 0;border-bottom:1px solid var(--border)}.room-actions{display:flex;gap:.2rem}.room-form h3{margin:.5rem 0 0;font-size:1rem}
