.container{max-width:600px;margin:0 auto;padding:2rem;display:flex;flex-direction:column;gap:2rem}h1{text-align:center;margin-bottom:1rem}.form-group{display:flex;flex-direction:column;gap:.5rem}label{font-weight:600;font-size:1rem}select,input{padding:.75rem;font-size:1rem;border:2px solid #646cff;border-radius:6px;background-color:#1a1a1a;color:#ffffffde;transition:border-color .25s}select:hover,input:hover{border-color:#535bf2}select:focus,input:focus{outline:none;border-color:#535bf2;box-shadow:0 0 0 3px #646cff1a}.confirm-button{padding:.75rem 1.5rem;font-size:1.1rem;font-weight:600;background:linear-gradient(135deg,#646cff,#535bf2);border:none;color:#fff;cursor:pointer;transition:all .25s}.confirm-button:hover{transform:translateY(-2px);box-shadow:0 4px 12px #646cff66}.confirm-button:active{transform:translateY(0)}.confirm-button:disabled{opacity:.5;cursor:not-allowed}.results-section{display:flex;flex-direction:column;gap:2rem}.rolls-container{display:flex;flex-direction:column;gap:1.5rem;flex:1}.roll-row{padding:1.5rem;background:#646cff08;border:2px solid rgba(100,108,255,.2);border-radius:8px;display:flex;flex-direction:column;gap:1rem}.roll-header{display:flex;align-items:center;justify-content:space-between;padding-bottom:.75rem;border-bottom:2px solid rgba(100,108,255,.2)}.roll-number{display:inline-flex;align-items:center;gap:.5rem;color:#646cff;line-height:1}.roll-number-glyph{font-size:2.25rem;line-height:1}.roll-number-value{font-size:1.3rem;font-weight:600;line-height:1}.systems-list{flex:1;min-height:60px;display:flex;align-items:center}.systems-list ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.5rem;width:100%}.systems-list li{padding:.75rem 1rem;background-color:#646cff0d;border-left:4px solid #646cff;border-radius:4px;font-size:.95rem}.systems-list li.bold-system{font-weight:700;text-decoration:underline;color:inherit}.roll-controls{display:flex;align-items:center;gap:.5rem;justify-content:center;padding:.75rem 0}.roll-instance-list{display:flex;flex-direction:column;gap:.75rem}.roll-instance-row{padding:.5rem 1rem;margin:0 -1rem;border:1px solid rgba(100,108,255,.25);border-radius:6px}.roll-instance-row--conflict{border-color:#e53935d9;background:#e5393514}.roll-instance-main{display:flex;align-items:flex-start;gap:.75rem}.roll-instance-label{display:inline-block;width:7ch;flex-shrink:0;font-weight:700;font-variant-numeric:tabular-nums;align-self:center}.roll-controls--inline{padding:0;justify-content:flex-start;flex-shrink:0;align-self:center}.systems-list--inline{min-height:0;align-items:flex-start}.systems-list--inline li{padding:.55rem .75rem;white-space:nowrap}.column-badge{display:inline-block;background:#646cff;color:#fff;padding:.5rem .75rem;border-radius:6px;font-size:.85rem;font-weight:600}.nav-button{padding:.5rem 1rem;font-size:.85rem;font-weight:600;background:#646cff;border:none;color:#fff;cursor:pointer;border-radius:6px;transition:all .25s}.nav-button:hover:not(:disabled){transform:translateY(-2px);background:#535bf2;box-shadow:0 4px 12px #646cff66}.nav-button:disabled{opacity:.3;cursor:not-allowed}.roll-row--conflict{border-color:#e53935!important;background:#e5393512!important}@media (max-width: 720px){.roll-instance-main{flex-direction:column;align-items:center;text-align:center}.roll-controls--inline{width:100%;justify-content:center}.systems-list--inline{width:100%;align-items:center}.systems-list--inline ul{align-items:center}}.roll-tally-section{border:2px solid rgba(100,108,255,.2);border-radius:8px;overflow:hidden}.roll-tally-toggle{width:100%;display:flex;justify-content:space-between;align-items:center;padding:.75rem 1.25rem;background:#646cff14;border:none;color:#646cff;font-size:.95rem;font-weight:700;cursor:pointer;text-align:left;transition:background .2s}.roll-tally-toggle:hover{background:#646cff29}.roll-tally-chevron{font-size:.7rem}.roll-tally-list{list-style:none;padding:.5rem 1.25rem;margin:0;display:flex;flex-direction:column;gap:.35rem}.roll-tally-item{font-size:.875rem}.roll-tally-label{display:inline-flex;align-items:center;gap:.35rem;font-weight:500}.roll-tally-glyph{font-size:1.45rem;line-height:1}.roll-tally-value{font-size:1rem;line-height:1}.roll-tally-count{font-weight:700;color:#646cff}.roll-tally-item{padding:0}.roll-tally-link{position:relative;overflow:hidden;display:flex;justify-content:space-between;align-items:center;gap:.75rem;padding:.65rem .75rem;background:#646cff0a;border-radius:4px;text-decoration:none;color:inherit;transition:background .2s}.roll-tally-bar{position:absolute;left:0;top:0;bottom:0;width:0;background:linear-gradient(90deg,#646cff52,#646cff24);pointer-events:none}.roll-tally-label,.roll-tally-count{position:relative;z-index:1}.roll-tally-link:hover{background:#646cff26}.tally-section{padding:1.25rem 1.5rem;background:#646cff08;border:2px solid rgba(100,108,255,.2);border-radius:8px}.tally-title{margin:0 0 .75rem;font-size:1rem;font-weight:700;color:#646cff}.tally-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.4rem}.tally-item{display:flex;justify-content:space-between;align-items:center;padding:.4rem .75rem;background:#646cff0d;border-radius:4px;font-size:.9rem}.tally-name{font-weight:500}.tally-count{font-weight:700;color:#646cff;min-width:2rem;text-align:right}@media (prefers-color-scheme: light){select,input{background-color:#fff;color:#213547;border-color:#747bff}select:hover,input:hover{border-color:#535bf2}.roll-header{border-bottom-color:#535bf24d}.roll-number{color:#535bf2}.column-badge{background:#535bf2}.roll-row{background:#646cff0d;border-color:#535bf24d}.systems-list li{background-color:#646cff14;border-color:#535bf2;color:#213547}.systems-list li.bold-system{font-weight:700;text-decoration:underline;color:#213547}.nav-button{background:#535bf2}.nav-button:hover:not(:disabled){background:#646cff}}:root{color:#ffffffde;background-color:#242424}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}
