.grind-page{--gt-border:#e5e7eb;--gt-muted:#6b7280;--gt-soft:#f8fafc;--gt-panel:#fff;--gt-accent:#f97316;--gt-accent-dark:#ea580c;padding-top:20px;padding-bottom:34px}.dark .grind-page{--gt-border:#2f2f2f;--gt-muted:#a3a3a3;--gt-soft:#1d1d1d;--gt-panel:#171717;--gt-accent:#fb923c;--gt-accent-dark:#f97316}.grind-page *{box-sizing:border-box}.grind-hero,.grind-card,.grind-steps{border:1px solid var(--gt-border);background:var(--gt-panel);border-radius:10px}.grind-hero{display:grid;grid-template-columns:56px minmax(0,1fr) auto;align-items:center;gap:16px;padding:24px;background-image:radial-gradient(circle at 8% 0,rgba(249,115,22,.1),transparent 26%),linear-gradient(120deg,rgba(255,255,255,.9),rgba(255,247,237,.75))}.dark .grind-hero{background-image:radial-gradient(circle at 8% 0,rgba(249,115,22,.14),transparent 28%),linear-gradient(120deg,#171717,#1f1916)}.grind-hero-icon{display:flex;width:52px;height:52px;align-items:center;justify-content:center;border-radius:10px;background:#fff7ed;color:#ea580c;font-size:29px}.dark .grind-hero-icon{background:rgba(249,115,22,.14);color:#fdba74}.grind-eyebrow{display:block;color:var(--gt-accent-dark);font-size:11px;line-height:1.2;font-weight:500;letter-spacing:.1em}.grind-hero h1,.grind-card h2{margin:5px 0 0;font-size:28px;line-height:1.15;font-weight:600}.grind-hero p,.grind-card-head p{margin:8px 0 0;color:var(--gt-muted);font-size:14px;line-height:1.65}.grind-hero-stats{display:grid;grid-template-columns:repeat(3,minmax(105px,1fr));overflow:hidden;border:1px solid var(--gt-border);border-radius:8px;background:rgba(255,255,255,.72)}.dark .grind-hero-stats{background:rgba(0,0,0,.12)}.grind-hero-stats div{padding:12px 16px;border-left:1px solid var(--gt-border)}.grind-hero-stats div:first-child{border-left:0}.grind-hero-stats span,.grind-history-list article>div>span{display:block;color:var(--gt-muted);font-size:11px}.grind-hero-stats b{display:block;margin-top:4px;font-size:20px;font-weight:500}.grind-steps{display:grid;grid-template-columns:repeat(3,1fr);margin:14px 0;padding:0;list-style:none;overflow:hidden}.grind-steps li{display:flex;align-items:center;gap:11px;padding:14px 18px;border-left:1px solid var(--gt-border);color:var(--gt-muted)}.grind-steps li:first-child{border-left:0}.grind-steps li.active{background:#fff7ed;color:#9a3412}.dark .grind-steps li.active{background:rgba(249,115,22,.1);color:#fdba74}.grind-steps li>b{display:flex;width:26px;height:26px;align-items:center;justify-content:center;border-radius:50%;background:var(--gt-soft);font-size:12px;font-weight:500}.grind-steps li.active>b{background:var(--gt-accent);color:white}.grind-steps span{display:flex;flex-direction:column;min-width:0}.grind-steps strong{font-size:13px;font-weight:500}.grind-steps small{margin-top:2px;font-size:11px;font-weight:400}.grind-workspace{min-height:360px}.grind-card{overflow:hidden}.grind-card-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 22px;border-bottom:1px solid var(--gt-border)}.grind-card-head h2{font-size:20px}.grind-card-head>span{color:var(--gt-accent);font-size:34px}.grind-search{display:flex;height:48px;align-items:center;gap:10px;margin:20px 22px 14px;padding:0 14px;border:1px solid var(--gt-border);border-radius:8px;background:var(--gt-soft)}.grind-search:focus-within{border-color:#a855f7;background:var(--gt-panel)}.grind-search>span{color:var(--gt-muted);font-size:21px}.grind-search input{min-width:0;flex:1;height:100%;border:0;background:transparent;font-size:14px}.grind-search i{color:var(--gt-accent);font-size:20px;animation:gt-spin .8s linear infinite}.grind-map-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:0 22px 22px}.grind-map-option{display:grid;grid-template-columns:42px minmax(0,1fr) 20px;align-items:center;gap:12px;padding:12px;border:1px solid var(--gt-border);border-radius:8px;background:var(--gt-panel);color:inherit;text-align:left;transition:.15s}.grind-map-option:hover{border-color:#fb923c;background:#fffaf5}.dark .grind-map-option:hover{background:rgba(249,115,22,.07)}.grind-map-mark{display:flex;width:42px;height:42px;align-items:center;justify-content:center;border-radius:8px;background:#fff7ed;color:#ea580c;font-size:22px}.dark .grind-map-mark{background:rgba(249,115,22,.12);color:#fdba74}.grind-map-copy{display:flex;min-width:0;flex-direction:column}.grind-entity-name{display:inline-block;width:fit-content;max-width:100%;font-weight:500}.grind-map-copy>.grind-entity-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}.grind-map-copy small,.grind-map-copy em{margin-top:3px;overflow:hidden;color:var(--gt-muted);font-size:11px;font-style:normal;text-overflow:ellipsis;white-space:nowrap}.grind-map-option>span:last-child{color:var(--gt-muted);font-size:19px}.grind-selected-map{display:flex;align-items:center;gap:13px;padding:16px 20px;border-bottom:1px solid var(--gt-border)}.grind-selected-image{display:flex;width:54px;height:54px;flex:0 0 54px;align-items:center;justify-content:center;overflow:hidden;border:1px solid var(--gt-border);border-radius:8px;background:var(--gt-soft);color:var(--gt-accent);font-size:26px}.grind-selected-image img{width:100%;height:100%;object-fit:cover}.grind-selected-copy{display:flex;min-width:0;flex:1;flex-direction:column}.grind-selected-copy strong{margin-top:3px;font-size:17px}.grind-selected-copy small{margin-top:3px;color:var(--gt-muted);font-size:11px}.grind-ghost-button,.grind-primary-button,.grind-stop-button{display:inline-flex;height:38px;align-items:center;justify-content:center;gap:6px;border-radius:7px;padding:0 14px;font-size:13px;font-weight:500}.grind-ghost-button{border:1px solid var(--gt-border);background:var(--gt-panel);color:inherit}.grind-ghost-button:hover{background:var(--gt-soft)}.grind-primary-button,.grind-stop-button{border:1px solid var(--gt-accent-dark);background:var(--gt-accent-dark);color:white}.grind-primary-button:hover,.grind-stop-button:hover{background:#c2410c}.grind-status{display:flex;align-items:center;gap:7px;border-radius:999px;background:var(--gt-soft);padding:7px 11px;color:var(--gt-muted);font-size:12px}.grind-status i{width:7px;height:7px;border-radius:50%;background:currentColor}.grind-status.is-running{background:#ecfdf5;color:#059669}.dark .grind-status.is-running{background:rgba(16,185,129,.1);color:#6ee7b7}.grind-loading{display:flex;min-height:300px;align-items:center;justify-content:center;gap:8px;color:var(--gt-muted);font-size:13px}.grind-loading span{animation:gt-spin .8s linear infinite}.grind-setup{display:grid;grid-template-columns:minmax(0,1fr) 360px}.grind-monsters-block,.grind-form-panel,.grind-finish{padding:22px}.grind-form-panel{border-left:1px solid var(--gt-border)}.grind-section-title{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.grind-section-title h3,.grind-drops h3{margin:0;font-size:15px;font-weight:600}.grind-section-title>span{color:var(--gt-muted);font-size:11px}.grind-monsters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:14px}.grind-mob{display:grid;grid-template-columns:40px minmax(0,1fr);align-items:center;gap:10px;padding:9px;border:1px solid var(--gt-border);border-radius:7px;background:var(--gt-soft)}.grind-mob-icon{display:flex;width:40px;height:40px;align-items:center;justify-content:center;border-radius:6px;background:var(--gt-panel);color:var(--gt-muted);font-size:20px}.grind-mob-icon img{max-width:36px;max-height:36px;object-fit:contain;image-rendering:pixelated}.grind-mob>span:last-child{display:flex;min-width:0;flex-direction:column}.grind-mob strong{overflow:hidden;font-size:12px;font-weight:500;text-overflow:ellipsis;white-space:nowrap}.grind-mob small{margin-top:3px;color:var(--gt-muted);font-size:10px}.grind-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px}.grind-fields label{display:flex;min-width:0;flex-direction:column;gap:6px}.grind-fields label>span,.grind-note>span{font-size:12px;font-weight:500}.grind-fields input,.grind-note textarea{width:100%;border:1px solid var(--gt-border);border-radius:7px;background:var(--gt-panel);color:inherit}.grind-fields input{height:43px;padding:0 12px;font-size:15px}.grind-fields small,.grind-note small{color:var(--gt-muted);font-size:10px}.grind-form-panel>.grind-primary-button{width:100%;margin-top:18px}.grind-running{display:flex;min-height:340px;align-items:center;justify-content:center;flex-direction:column;padding:28px;text-align:center}.grind-running-icon{display:flex;width:62px;height:62px;align-items:center;justify-content:center;margin-bottom:14px;border-radius:50%;background:#fff7ed;color:#ea580c;font-size:30px;animation:gt-pulse 1.8s ease-in-out infinite}.dark .grind-running-icon{background:rgba(249,115,22,.12);color:#fdba74}.grind-timer{margin-top:8px;font-variant-numeric:tabular-nums;font-size:54px;font-weight:500;letter-spacing:.03em}.grind-running p{margin:4px 0 22px;color:var(--gt-muted);font-size:13px}.grind-running>div{display:flex;gap:9px}.grind-stop-button{height:42px;padding:0 18px}.grind-finish{max-width:880px;margin:0 auto}.grind-finish>.grind-section-title{align-items:center;padding-bottom:18px;border-bottom:1px solid var(--gt-border)}.grind-finish>.grind-fields{max-width:560px}.grind-drops{margin-top:22px;padding-top:20px;border-top:1px solid var(--gt-border)}.grind-drops p{margin:5px 0 12px;color:var(--gt-muted);font-size:11px}.grind-drops>div{display:flex;flex-wrap:wrap;gap:8px}.grind-drops label{display:flex;align-items:center;gap:6px;border:1px solid var(--gt-border);border-radius:7px;padding:8px 10px;cursor:pointer;font-size:12px}.grind-drops label.checked{border-color:#fb923c;background:#fff7ed;color:#9a3412}.dark .grind-drops label.checked{background:rgba(249,115,22,.1);color:#fdba74}.grind-drops input{position:absolute;opacity:0;pointer-events:none}.grind-drops i{display:none}.grind-drops label.checked i{display:inline}.grind-note{display:flex;flex-direction:column;gap:6px;margin-top:20px}.grind-note textarea{min-height:82px;resize:vertical;padding:10px 12px;font:inherit;font-size:13px;line-height:1.6}.grind-note small{text-align:right}.grind-actions{display:flex;gap:9px;margin-top:18px}.grind-result{padding:22px}.grind-result>header{display:flex;align-items:center;gap:13px;padding-bottom:20px;border-bottom:1px solid var(--gt-border)}.grind-result>header>div{min-width:0;flex:1}.grind-result>header h2{margin:3px 0 0;font-size:20px;font-weight:600}.grind-result>header p{margin:4px 0 0;color:var(--gt-muted);font-size:11px}.grind-result-badge{display:flex;width:48px;height:48px;align-items:center;justify-content:center;border-radius:50%;background:#ecfdf5;color:#059669;font-size:24px}.dark .grind-result-badge{background:rgba(16,185,129,.1);color:#6ee7b7}.grind-result-grid{display:grid;grid-template-columns:repeat(4,1fr);margin-top:20px;border:1px solid var(--gt-border);border-radius:8px;overflow:hidden}.grind-result-grid>div{padding:18px;border-left:1px solid var(--gt-border)}.grind-result-grid>div:first-child{border-left:0}.grind-result-grid span{display:block;color:var(--gt-muted);font-size:11px}.grind-result-grid strong{display:block;margin-top:6px;font-size:25px;font-weight:500}.grind-result-grid small{display:block;margin-top:5px;color:var(--gt-muted);font-size:10px}.grind-result-note{display:flex;align-items:center;gap:7px;margin:14px 0 0;border-radius:7px;background:var(--gt-soft);padding:11px 12px;color:var(--gt-muted);font-size:12px}.grind-history{margin-top:14px}.grind-history-list article{display:grid;grid-template-columns:minmax(220px,1.6fr) repeat(4,minmax(95px,.7fr)) 30px;align-items:center;gap:12px;padding:13px 20px;border-top:1px solid var(--gt-border)}.grind-history-list article:first-child{border-top:0}.grind-history-map{display:flex;align-items:center;gap:10px}.grind-history-map>span{display:flex;width:36px;height:36px;align-items:center;justify-content:center;border-radius:7px;background:#fff7ed;color:#ea580c;font-size:18px}.dark .grind-history-map>span{background:rgba(249,115,22,.1);color:#fdba74}.grind-history-map>div{display:flex;min-width:0;flex-direction:column}.grind-history-map strong{overflow:hidden;font-size:13px;font-weight:500;text-overflow:ellipsis;white-space:nowrap}.grind-history-map small{margin-top:3px;color:var(--gt-muted);font-size:10px}.grind-history-list article>div>b{display:block;margin-top:3px;font-size:13px;font-weight:500}.grind-history-list article>button{display:flex;width:28px;height:28px;align-items:center;justify-content:center;border:0;border-radius:6px;background:transparent;color:var(--gt-muted)}.grind-history-list article>button:hover{background:#fef2f2;color:#dc2626}.grind-empty{display:flex;min-height:150px;align-items:center;justify-content:center;flex-direction:column;padding:26px;color:var(--gt-muted);text-align:center;font-size:13px}.grind-empty>span{font-size:28px}.grind-empty strong{margin-top:7px;color:inherit;font-weight:500}.grind-empty p{margin:4px 0 0;font-size:11px}.grind-alert{display:flex;align-items:center;gap:10px;margin-bottom:12px;border:1px solid #fecaca;border-radius:8px;background:#fef2f2;padding:11px 13px;color:#b91c1c;font-size:12px}.dark .grind-alert{border-color:rgba(239,68,68,.25);background:rgba(239,68,68,.08);color:#fca5a5}.grind-alert p{flex:1;margin:0}.grind-alert button{border:0;background:transparent;color:inherit}.grind-footnote{display:flex;align-items:flex-start;gap:7px;margin:14px 2px 0;color:var(--gt-muted);font-size:11px;line-height:1.6}@keyframes gt-spin{to{transform:rotate(360deg)}}@keyframes gt-pulse{50%{transform:scale(1.06);box-shadow:0 0 0 8px rgba(249,115,22,.07)}}@media(max-width:900px){.grind-hero{grid-template-columns:48px minmax(0,1fr)}.grind-hero-stats{grid-column:1/-1}.grind-setup{grid-template-columns:1fr}.grind-form-panel{border-top:1px solid var(--gt-border);border-left:0}.grind-history-list article{grid-template-columns:minmax(200px,1.4fr) repeat(2,minmax(90px,.7fr)) 30px}.grind-history-list article>div:nth-of-type(4),.grind-history-list article>div:nth-of-type(5){display:none}}@media(max-width:640px){.grind-page{padding-top:12px}.grind-hero{grid-template-columns:40px minmax(0,1fr);padding:17px}.grind-hero-icon{width:40px;height:40px;font-size:22px}.grind-hero h1{font-size:23px}.grind-hero p{font-size:12px}.grind-hero-stats{grid-template-columns:repeat(3,1fr)}.grind-hero-stats div{padding:10px 8px}.grind-hero-stats b{font-size:15px}.grind-steps li{justify-content:center;padding:10px 4px}.grind-steps li>span{display:none}.grind-map-grid,.grind-monsters{grid-template-columns:1fr}.grind-card-head,.grind-selected-map{padding:15px}.grind-card-head p{font-size:12px}.grind-search{margin:15px}.grind-map-grid{padding:0 15px 15px}.grind-selected-map .grind-ghost-button{width:38px;padding:0;font-size:0}.grind-selected-map .grind-ghost-button span{font-size:17px}.grind-monsters-block,.grind-form-panel,.grind-finish,.grind-result{padding:16px}.grind-fields{grid-template-columns:1fr}.grind-timer{font-size:40px}.grind-running>div{flex-direction:column;width:100%}.grind-result>header{align-items:flex-start;flex-wrap:wrap}.grind-result>header .grind-primary-button{width:100%}.grind-result-grid{grid-template-columns:repeat(2,1fr)}.grind-result-grid>div:nth-child(3){border-left:0;border-top:1px solid var(--gt-border)}.grind-result-grid>div:nth-child(4){border-top:1px solid var(--gt-border)}.grind-history-list article{grid-template-columns:minmax(0,1fr) 76px 28px;padding:12px 14px}.grind-history-list article>div:nth-of-type(n+3){display:none}.grind-history-list article>div:nth-of-type(2){display:block}.grind-actions{flex-direction:column}.grind-actions button{width:100%}}

.grind-level-filter{margin:0 22px 16px;padding:14px;border:1px solid #fed7aa;border-radius:10px;background:linear-gradient(135deg,#fffaf5 0%,#fff 62%);box-shadow:0 7px 20px rgba(154,52,18,.04)}.dark .grind-level-filter{border-color:rgba(251,146,60,.25);background:linear-gradient(135deg,rgba(249,115,22,.09),rgba(255,255,255,.02))}.grind-level-filter>header{display:flex;align-items:center;gap:10px}.grind-level-filter-icon{display:flex;width:34px;height:34px;flex:0 0 34px;align-items:center;justify-content:center;border-radius:8px;background:#ffedd5;color:#ea580c;font-size:18px}.dark .grind-level-filter-icon{background:rgba(249,115,22,.15);color:#fdba74}.grind-level-filter>header>span:last-child{display:flex;min-width:0;flex-direction:column}.grind-level-filter>header strong{font-size:13px;font-weight:600}.grind-level-filter>header small{margin-top:2px;color:var(--gt-muted);font-size:11px}.grind-level-presets{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.grind-level-presets button{display:inline-flex;min-height:34px;align-items:center;justify-content:center;gap:5px;padding:0 12px;border:1px solid var(--gt-border);border-radius:7px;background:var(--gt-panel);color:var(--gt-muted);font-size:12px;transition:.16s ease}.grind-level-presets button:hover{border-color:#fdba74;color:#c2410c;transform:translateY(-1px)}.grind-level-presets button.active{border-color:#f97316;background:#f97316;color:#fff;box-shadow:0 5px 12px rgba(249,115,22,.18)}.grind-level-presets button.is-custom{margin-left:auto}.grind-custom-level{display:flex;align-items:flex-end;gap:9px;margin-top:12px;padding:12px;border:1px dashed #fdba74;border-radius:8px;background:rgba(255,255,255,.72)}.dark .grind-custom-level{background:rgba(0,0,0,.12)}.grind-custom-level label{display:flex;flex-direction:column;gap:5px}.grind-custom-level label>span:first-child{color:var(--gt-muted);font-size:10px}.grind-level-input{display:flex;width:138px;height:38px;align-items:center;overflow:hidden;border:1px solid var(--gt-border);border-radius:7px;background:var(--gt-panel)}.grind-level-input:focus-within{border-color:#f97316;box-shadow:0 0 0 3px rgba(249,115,22,.1)}.grind-level-input b{padding-left:10px;color:#c2410c;font-size:11px;font-weight:600}.grind-level-input input{width:100%;min-width:0;height:100%;border:0;background:transparent;padding:0 9px 0 4px;color:inherit;font-size:14px;font-weight:500;outline:0}.grind-level-separator{display:flex;height:38px;align-items:center;color:#fb923c}.grind-custom-level>button{display:inline-flex;height:38px;align-items:center;justify-content:center;gap:5px;padding:0 13px;border:1px solid #ea580c;border-radius:7px;background:#ea580c;color:#fff;font-size:12px}.grind-custom-level>button:hover{background:#c2410c}.grind-custom-level>button.is-reset{border-color:var(--gt-border);background:var(--gt-panel);color:var(--gt-muted)}.grind-level-filter>footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:11px;padding-top:10px;border-top:1px solid rgba(251,146,60,.18)}.grind-level-filter>footer>span{display:flex;align-items:center;gap:6px;color:#c2410c;font-size:11px;font-weight:500}.dark .grind-level-filter>footer>span{color:#fdba74}.grind-level-filter>footer small{overflow:hidden;color:var(--gt-muted);font-size:11px;text-align:right;text-overflow:ellipsis;white-space:nowrap}@media(max-width:640px){.grind-level-filter{margin:0 15px 14px;padding:12px}.grind-level-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.grind-level-presets button{min-width:0;padding:0 6px}.grind-level-presets button.is-custom{margin-left:0}.grind-custom-level{display:grid;grid-template-columns:minmax(0,1fr) 18px minmax(0,1fr);align-items:end}.grind-level-input{width:100%}.grind-custom-level>button{grid-column:span 2}.grind-custom-level>button.is-reset{grid-column:auto}.grind-level-filter>footer{align-items:flex-start;flex-direction:column;gap:4px}.grind-level-filter>footer small{text-align:left;white-space:normal}}
.grind-picker .grind-search {
  height: 50px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(15,23,42,.035);
  transition: border-color .16s ease,box-shadow .16s ease;
}

.grind-picker .grind-search:focus-within {
  border-color: #fdba74;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(249,115,22,.1),0 5px 16px rgba(15,23,42,.045);
}

.dark .grind-picker .grind-search {
  border-color: #343434;
  background: var(--gt-panel);
  box-shadow: 0 3px 12px rgba(0,0,0,.12);
}

.dark .grind-picker .grind-search:focus-within {
  border-color: #fb923c;
  background: var(--gt-panel);
  box-shadow: 0 0 0 3px rgba(251,146,60,.11),0 5px 16px rgba(0,0,0,.15);
}

.grind-level-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 22px 8px;
  padding: 4px 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.grind-level-toolbar-title {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  padding-right: 3px;
  color: #c2410c;
  font-size: 12px;
  white-space: nowrap;
}

.dark .grind-level-toolbar-title { color: #fdba74; }
.grind-level-toolbar-title > span { font-size: 17px; }
.grind-level-toolbar-title b { font-weight: 600; }

.grind-level-quick {
  display: flex;
  min-width: 0;
  flex: 0 1 auto;
  gap: 5px;
}

.grind-level-quick button {
  display: inline-flex;
  min-height: 32px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid var(--gt-border);
  border-radius: 6px;
  background: var(--gt-panel);
  color: var(--gt-muted);
  font-size: 11px;
  transition: .15s ease;
}

.grind-level-quick button:hover {
  border-color: #fdba74;
  color: #c2410c;
}

.grind-level-quick button.active {
  border-color: #f97316;
  background: #f97316;
  color: #fff;
  box-shadow: 0 3px 9px rgba(249,115,22,.16);
}

.grind-level-inline-custom {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  padding-left: 8px;
  border-left: 1px solid var(--gt-border);
}

.grind-level-custom-label {
  color: var(--gt-muted);
  font-size: 11px;
  white-space: nowrap;
}

.grind-level-compact-input {
  display: flex;
  width: 86px;
  height: 32px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--gt-border);
  border-radius: 6px;
  background: var(--gt-panel);
  transition: .15s ease;
}

.grind-level-compact-input:focus-within,
.grind-level-inline-custom.is-active .grind-level-compact-input {
  border-color: #fb923c;
  box-shadow: 0 0 0 2px rgba(249,115,22,.08);
}

.grind-level-compact-input b {
  padding-left: 8px;
  color: #c2410c;
  font-size: 10px;
  font-weight: 600;
}

.grind-level-compact-input input {
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 6px 0 3px;
  color: inherit;
  font-size: 12px;
}

.grind-level-inline-separator { color: var(--gt-muted); font-size: 11px; }

.grind-level-apply,
.grind-level-reset {
  display: inline-flex;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 11px;
}

.grind-level-apply {
  gap: 4px;
  padding: 0 10px;
  border: 1px solid #ea580c;
  background: #ea580c;
  color: #fff;
}

.grind-level-apply:hover { background: #c2410c; }

.grind-level-reset {
  width: 32px;
  border: 1px solid var(--gt-border);
  background: var(--gt-panel);
  color: var(--gt-muted);
  font-size: 16px;
}

.grind-level-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 24px 12px;
  color: var(--gt-muted);
  font-size: 10px;
}

.grind-level-meta > span { display: inline-flex; align-items: center; gap: 5px; color: #c2410c; }
.dark .grind-level-meta > span { color: #fdba74; }
.grind-level-meta small { font-size: 10px; }

.grind-map-more {
  display: flex;
  justify-content: center;
  padding: 0 22px 22px;
}

.grind-map-more > button,
.grind-map-more > span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 7px;
  font-size: 12px;
}

.grind-map-more > button {
  min-width: 220px;
  padding: 0 16px;
  border: 1px solid #fed7aa;
  background: #fff7ed;
  color: #c2410c;
  transition: .15s ease;
}

.grind-map-more > button:hover:not(:disabled) {
  border-color: #fb923c;
  background: #ffedd5;
  transform: translateY(-1px);
}

.grind-map-more > button:disabled { cursor: wait; opacity: .7; }
.grind-map-more > button small { padding-left: 7px; border-left: 1px solid #fdba74; font-size: 10px; }
.grind-map-more > button .tw-icon-\[mdi--loading\] { animation: gt-spin .8s linear infinite; }
.grind-map-more > span { color: var(--gt-muted); }
.dark .grind-map-more > button { border-color: rgba(251,146,60,.25); background: rgba(249,115,22,.1); color: #fdba74; }

@media (max-width: 1100px) {
  .grind-level-toolbar { flex-wrap: wrap; }
  .grind-level-inline-custom { flex: 1 1 100%; justify-content: flex-start; padding: 8px 0 0; border-top: 1px solid var(--gt-border); border-left: 0; }
}

@media (max-width: 640px) {
  .grind-level-toolbar { margin: 0 15px 7px; padding: 9px; }
  .grind-level-toolbar-title { width: 100%; }
  .grind-level-quick { display: grid; width: 100%; grid-template-columns: repeat(3,minmax(0,1fr)); }
  .grind-level-quick button { min-width: 0; padding: 0 5px; }
  .grind-level-inline-custom { display: grid; grid-template-columns: auto minmax(0,1fr) 10px minmax(0,1fr) auto auto; }
  .grind-level-compact-input { width: 100%; }
  .grind-level-meta { align-items: flex-start; flex-direction: column; gap: 3px; margin: 0 17px 10px; }
  .grind-map-more { padding: 0 15px 16px; }
  .grind-map-more > button { width: 100%; }
}
