/* My account > Arrange side panel, the sidebar's Arrange button and the Pinned group. Tokens from app.css only. */

/* the sidebar: a compact Arrange button next to Simplified, and the Pinned group */
.side-arrange { flex: none; }
.side-arrange-text { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nav-pinned > .nav-label::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--lavender); margin-right: 7px; vertical-align: 1px; }

/* the page */
.arr-modes { display: inline-flex; gap: var(--s1); padding: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); margin-bottom: var(--s4); flex-wrap: wrap; max-width: 100%; }
.arr-mode { display: inline-flex; align-items: center; gap: var(--s2); min-height: 38px; padding: 0 var(--s4); border-radius: 9px; color: var(--muted); font-weight: 500; font-size: 14px; text-decoration: none; }
.arr-mode:hover { color: var(--text); text-decoration: none; }
.arr-mode.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1, 0 1px 2px rgba(0, 0, 0, .08)); }
.arr-inuse { font-size: 11px; font-weight: 600; letter-spacing: .04em; color: var(--accent-text); background: var(--accent-soft); border-radius: 6px; padding: 2px 6px; }
.arr-intro { margin-bottom: var(--s4); }
.arr-default { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.arr-layout { position: relative; }
.arr-howto { margin: 0; }
.arr-sections { display: flex; flex-direction: column; gap: var(--s4); }
.arr-card { margin: 0; }
.arr-card h2 { display: inline-flex; align-items: center; gap: var(--s2); }
.arr-section-head { gap: var(--s3); }
.arr-list { list-style: none; margin: 0; padding: 0; }
.arr-empty { margin: 0; padding: var(--s3) var(--s5) var(--s4); }
.arr-empty .icon { vertical-align: -2px; }
.arr-row { display: flex; align-items: center; gap: var(--s3); padding: var(--s2) var(--s4) var(--s2) var(--s3); border-top: 1px solid var(--border); background: var(--surface); min-height: 52px; }
.arr-row.is-hidden .arr-name { color: var(--muted); }
.arr-row.is-hidden .arr-label { text-decoration: line-through; text-decoration-color: var(--border-strong); }
.arr-row.is-pinned .arr-pin { color: var(--accent-text); background: var(--accent-soft); }
.arr-name { display: flex; align-items: center; gap: var(--s2); flex: 1 1 auto; min-width: 0; font-weight: 500; flex-wrap: wrap; }
.arr-name > .icon { color: var(--muted); flex: none; }
.arr-chip { height: 22px; font-size: 11.5px; padding: 0 8px; }
.arr-tools { display: inline-flex; align-items: center; gap: var(--s1); flex: none; }
.arr-show { margin-right: var(--s2); font-size: 13.5px; }
.arr-btn { width: 34px; height: 34px; }
.arr-grip { display: grid; place-items: center; width: 28px; height: 36px; flex: none; color: var(--faint, var(--muted)); border-radius: 8px; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.arr-grip:hover { color: var(--text); background: var(--surface-2); }
.arr-form:not(.js-arr) .arr-grip, form:not(.js-arr) .arr-grip { display: none; }
.arr-dragging { position: relative; z-index: 2; box-shadow: var(--shadow-2); border-radius: 10px; outline: 2px solid var(--violet); outline-offset: -2px; }
.arr-is-dragging, .arr-is-dragging * { cursor: grabbing !important; user-select: none; }
.arr-section.arr-dragging { border-radius: var(--r-lg); }
.arr-tabs { padding: var(--s4) var(--s5); border: 1px solid var(--border); }
.arr-tabs-legend { display: flex; flex-direction: column; gap: 2px; padding: 0; float: left; width: 100%; }
.arr-tabs-legend + * { clear: both; }
.arr-tabs-title { display: inline-flex; align-items: center; gap: var(--s2); font: 700 17px/1.3 var(--font-display); }
.arr-tab-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: var(--s2) var(--s4); }
.arr-tab-grid .check .icon { color: var(--muted); }
.arr-tab-grid .check:has(input:disabled) { opacity: .55; cursor: default; }
.arr-savebar { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.js-arr .arr-save { display: none; }
.arr-status.danger-text { color: var(--danger); }
.arr-aside { position: sticky; top: calc(var(--topbar-h, 64px) + var(--s4)); align-self: start; }
.arr-preview-note { margin: 0; }
.arr-reset { margin-top: var(--s4); }

@media (max-width: 1080px) { .arr-aside { position: static; } }
@media (max-width: 640px) {
  .arr-row { flex-wrap: wrap; padding: var(--s2) var(--s3); row-gap: var(--s1); }
  .arr-name { flex-basis: calc(100% - 40px); }
  .arr-tools { margin-left: auto; }
  .arr-row .arr-tools { width: 100%; justify-content: flex-end; }
  .arr-mode { padding: 0 var(--s3); }
  .arr-tabs { padding: var(--s4); }
}
