.tier-editor{margin:1.5rem 0 3rem}.editor-controls{border:0;min-width:0;margin:0;padding:0}.tier-primary-actions,.editor-history,.toolbar-group,.editor-bottom{flex-wrap:wrap;align-items:center;gap:.65rem;display:flex}.tier-primary-actions{margin-bottom:1rem}.tier-primary-actions .button{font-size:.875rem}.editor-history{gap:.3rem}.small-button{border:1px solid var(--line);background:var(--surface);min-width:44px;min-height:44px;color:var(--ink);border-radius:.5rem;justify-content:center;align-items:center;gap:.35rem;padding:.5rem .8rem;font-size:.875rem;display:inline-flex}.text-button{color:var(--accent-ink);background:0 0;border:0;min-height:44px;padding:.4rem .6rem;font-size:.875rem;font-weight:600}.checkbox-label{min-height:44px;color:var(--muted);align-items:center;gap:.45rem;font-size:.8125rem;display:flex}.checkbox-label input{width:18px;height:18px;accent-color:var(--accent-ink)}.tier-options{margin-left:auto;position:relative}.tier-options summary{cursor:pointer;min-height:44px;padding:.6rem .8rem;font-size:.875rem}.tier-options>div{z-index:20;border:1px solid var(--line);background:var(--surface);width:min(320px,85vw);box-shadow:var(--shadow-raised);border-radius:.8rem;gap:.5rem;padding:1rem;display:grid;position:absolute;top:100%;right:0}.board-title-label{display:block}.board-title-input{font:600 1.1rem/1.5 var(--font-body);border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:.5rem;width:min(100%,520px);margin:0 0 1rem;padding:.5rem .7rem}.tier-rows{border:1px solid #151b17;border-radius:6px;overflow:hidden}.tier-row{border-bottom:1px solid #0b110d;grid-template-columns:96px minmax(0,1fr) 88px;min-height:88px;display:grid}.tier-row:last-child{border-bottom:0}.tier-label{text-align:center;width:100%;min-width:0;height:100%;min-height:88px;font:500 .875rem/1.4 var(--font-body);cursor:text;border:0;border-radius:0;padding:.4rem}.tier-label:focus{outline-offset:-4px;outline:2px solid #fff}.tier-drop-zone{outline-offset:-2px;background:#1c241f;outline:2px solid #0000;flex-wrap:wrap;align-content:flex-start;align-items:stretch;gap:0;min-height:88px;padding:0;display:flex;position:relative}.tier-drop-zone.is-over{background:#28372b;outline-color:#c9f36a}.tier-row-actions{background:#101713;grid-template-rows:44px 44px;grid-template-columns:44px 44px;align-content:center;display:grid}.tier-row-actions button{color:#e7eee9;background:0 0;border:0;width:44px;height:44px;font-size:1.1rem}.tier-row-actions .tier-settings-button{grid-row:span 2;height:88px;font-size:1.35rem}.tier-row-actions button:focus-visible{outline-offset:-4px;outline-color:#c9f36a}.rank-item{color:#fff;background:#344a39;flex-shrink:0;width:88px;min-height:88px;position:relative}.rank-item-select{width:100%;height:100%;min-height:88px;color:inherit;cursor:grab;touch-action:none;background:0 0;border:0;flex-direction:column;justify-content:center;align-items:center;padding:0;display:flex}.rank-item-select img{object-fit:contain;-webkit-user-select:none;user-select:none;background:#fff;width:88px;height:88px;display:block}.rank-item-select>span{text-align:center;overflow-wrap:anywhere;max-width:100%;padding:.5rem;font-size:.8125rem;line-height:1.3}.has-image .rank-item-select>span{max-height:2.6rem;padding:.25rem .3rem;overflow:hidden}.text-item .rank-item-select{background:#354b3b}.rank-item.is-selected{outline-offset:-2px;outline:2px solid #c9f36a}.rank-item-select:focus-visible{outline-offset:-3px;outline:3px solid #c9f36a}.rank-item.is-dragging{opacity:.25}.tier-dragging,.tier-dragging *{-webkit-user-select:none!important;user-select:none!important;cursor:grabbing!important}.rank-drag-overlay{pointer-events:none;z-index:100;color:#fff;background:#354b3b;outline:2px solid #c9f36a;flex-direction:column;justify-content:center;align-items:center;width:88px;min-height:88px;display:flex;position:fixed;top:0;left:0;transform:translate(-1000px,-1000px);box-shadow:0 20px 35px #0006,0 2px 6px #0005}.rank-drag-overlay img{object-fit:contain;background:#fff;width:88px;height:88px}.rank-drag-overlay strong{overflow-wrap:anywhere;text-align:center;max-width:100%;padding:.4rem;font-size:.8125rem}.insert-before:before{content:"";z-index:2;background:#c9f36a;width:3px;position:absolute;top:0;bottom:0;left:0}.insert-end{background:#c9f36a;width:3px;min-height:88px}.row-empty{color:var(--muted);margin:auto 0;padding:1rem;font-size:.8125rem}.tier-rows .row-empty{padding:0}.tier-pool{border:1px dashed var(--line);border-radius:6px;margin:1rem 0;overflow:hidden}.pool-heading{background:var(--surface-muted);align-items:center;gap:.5rem;padding:.5rem .75rem;display:flex}.pool-heading h2{font-size:.8125rem;font-weight:500}.pool-heading>span{color:var(--muted);font-size:.75rem}.tier-pool .tier-drop-zone{background:var(--surface);gap:3px;padding:6px}.tier-pool .tier-drop-zone.is-over{background:var(--surface-muted)}.tier-instructions{color:var(--muted);margin:.6rem 0;font-size:.75rem}.add-tier-button{background:var(--surface);min-height:44px;color:var(--muted);border:1px solid var(--line);border-radius:.5rem;padding:.4rem 1rem;font-size:.8125rem}.editor-bottom{justify-content:space-between;margin-top:1.25rem}.editor-bottom .button{font-size:.875rem}.editor-status{color:var(--muted);flex-wrap:wrap;align-items:center;gap:.4rem;min-height:24px;margin-top:.85rem;font-size:.75rem;display:flex}.save-light{background:var(--accent-ink);border-radius:50%;width:5px;height:5px}.save-light[data-state=session]{background:#ad7218}.tier-feedback{color:var(--accent-ink);overflow-wrap:anywhere;min-height:1.5rem;font-size:.8125rem}.field-hint{color:var(--muted);font-size:.75rem;line-height:1.6}.file-button{cursor:pointer;justify-content:center;align-items:center;position:relative;overflow:hidden;display:flex!important}.file-button input{opacity:0;cursor:pointer;width:100%;height:100%;position:absolute;inset:0}.file-button:focus-within{outline:3px solid var(--focus);outline-offset:3px}.dialog-actions,.inspector-buttons{flex-wrap:wrap;gap:.6rem;margin-top:.75rem;display:flex}.tier-settings,.share-panel,.item-inspector,.add-items-panel{border:0;gap:.75rem;min-width:0;margin:0;padding:0;display:grid}.item-inspector label,.tier-settings label{gap:.3rem;font-size:.875rem;display:grid}.add-items-panel h2{justify-content:space-between;gap:.5rem;font-size:1rem;display:flex}.add-items-panel h2 span{color:var(--muted);font-size:.75rem}.add-items-panel label{font-size:.875rem}.add-items-panel textarea{resize:vertical}.inspector-buttons .small-button{flex:1;font-size:.8125rem}.danger-text{color:var(--danger)}.color-label{justify-content:space-between;align-items:center;display:flex!important}.color-label input{border:1px solid var(--line);background:0 0;border-radius:.5rem;width:64px;height:44px;padding:3px}.color-swatches{flex-wrap:wrap;gap:.5rem;display:flex}.color-swatches button{border:2px solid var(--line);border-radius:50%;width:44px;height:44px}.color-swatches button[aria-pressed=true]{outline:2px solid var(--ink);outline-offset:3px}.share-link{min-height:100px;font-size:.75rem}.share-preview{white-space:pre-wrap;overflow-wrap:anywhere;font:.8125rem/1.6 var(--font-body);max-height:240px;overflow:auto}.share-panel summary{cursor:pointer;min-height:44px;padding:.5rem 0}.tool-header{margin:1.25rem 0}.tool-header h1{letter-spacing:-.035em;font-size:clamp(1.5rem,3vw,2rem)}.tool-header p{margin-top:.5rem;font-size:.9375rem}@media (prefers-reduced-motion:no-preference){.tier-drop-zone{transition:background .12s}.app-dialog[open]{animation:.16s cubic-bezier(.16,1,.3,1) dialog-appear}@keyframes dialog-appear{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}}@media (hover:hover){.small-button:hover,.text-button:hover{background:var(--surface-muted)}.tier-row-actions button:hover{background:#28352c}}@media (max-width:780px){.tier-row{grid-template-columns:72px minmax(0,1fr) 88px}.rank-item{width:76px;min-height:88px}.rank-item-select img{width:76px;height:88px}.tier-primary-actions{gap:.5rem}.tier-primary-actions .checkbox-label{order:2}.tier-options{margin-left:0}}@media (max-width:480px){.tier-row{grid-template-columns:58px minmax(0,1fr) 88px}.rank-item,.rank-item-select img{width:72px}.tier-label{font-size:.75rem}.editor-bottom .toolbar-group{width:100%}.editor-bottom .button,.tier-primary-actions>.file-button{flex:1}.tier-primary-actions .small-button{font-size:.8125rem}.tier-rows{border-radius:3px}.tier-pool .tier-drop-zone{gap:2px;padding:4px}}
