/* Orbit Player account pages (on top of styles.css): the player's Settings pages in the Nord theme. */
.acct-main { padding-top: 36px; padding-bottom: 60px; max-width: 1040px; }
.acct h1 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); margin-bottom: 12px; }
.acct h2 { font-size: 1.05rem; font-weight: 700; color: var(--accent); max-width: none; margin-bottom: 14px; }
.acct h2.gap { margin-top: 26px; }
.acct h3 { font-size: 1.05rem; font-weight: 700; color: var(--accent); margin: 22px 0 6px; }
.acct a { color: var(--accent); }
.acct .top nav a { color: var(--dim); }
.acct .top nav a.btn { color: var(--on-accent); }
.lead { font-size: 1.05rem; color: var(--dim); max-width: 70ch; margin-bottom: 26px; }
.lead b { color: var(--text); }
.crumb { margin-bottom: 10px; font-size: 0.95rem; }
.hint { color: var(--dim); font-size: 0.88rem; font-weight: 400; }
.meta { color: var(--dim); font-size: 0.9rem; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px 20px; margin: 0 0 14px; }
.card.narrow { max-width: 460px; margin: 4vh auto 0; }
.card.narrow h1 { font-size: 1.7rem; margin-bottom: 20px; }
.profiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-bottom: 14px; }
a.card.profile { display: block; text-decoration: none; color: var(--text); margin: 0; background: var(--tile); border-radius: 12px; }
a.card.profile:hover { background: var(--tile-hover); }
a.card.profile h2 { margin-bottom: 4px; color: var(--text); font-size: 1.15rem; font-weight: 500; }
/* A profile's sections, like the player's Settings menu */
.smenu { display: grid; gap: 10px; max-width: 760px; }
.acct .smenu a { color: var(--text); }
.sback { display: flex; align-items: center; gap: 10px; }
.sback a { display: grid; place-items: center; width: 40px; height: 40px; margin-left: -8px; border-radius: 10px; color: var(--text); }
.sback a:hover { background: var(--tile); }
.sback .ic { width: 26px; height: 26px; }
.plain { list-style: none; padding: 0; margin: 12px 0 0; }
.plain li { padding: 3px 0; }

.acct label { display: block; font-weight: 500; font-size: 0.95rem; margin-bottom: 16px; }
.acct label .hint { margin-left: 6px; }
.acct input:not([type=checkbox]), .acct select {
  display: block; width: 100%; margin-top: 6px;
  font: inherit; color: var(--text); background: #262b35;
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px;
}
.acct input[type=number] { max-width: 120px; }
.acct input:focus-visible, .acct select:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.acct .btn { cursor: pointer; font-size: 1rem; padding: 11px 20px; font-family: inherit; }
.acct .btn.danger { color: #ff9c8f; }
.acct .btn.danger:hover { background: #ff9c8f; color: var(--on-accent); border-color: #ff9c8f; }
.linkbtn { background: none; border: 0; color: var(--dim); font: inherit; font-weight: 500; font-size: 0.95rem; cursor: pointer; padding: 0; border-radius: 0; }
.linkbtn:hover { color: var(--accent); }
form.inline { display: inline; }
.row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; max-width: none; margin: 0; }
.row label { margin-bottom: 0; flex: 0 1 300px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; margin-top: 6px; }
.grid .wide, .grid .row, .grid .check { grid-column: 1 / -1; }
/* On/off choices are the player's switches: a tile with the label on the left and the switch on the right. */
label.check {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  flex-direction: row-reverse;
  font-weight: 400; font-size: 1rem; cursor: pointer;
  background: var(--tile); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; margin-bottom: 8px;
}
label.check .lbl { flex: 1; min-width: 0; overflow-wrap: anywhere; }
label.check input {
  appearance: none; -webkit-appearance: none;
  flex: none; width: 46px; height: 26px; margin: 0; padding: 0;
  border-radius: 13px; background: #262b35; border: 1px solid var(--line);
  position: relative; cursor: pointer; transition: background 0.15s;
}
label.check input::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--dim); transition: left 0.15s, background 0.15s;
}
label.check input:checked { background: var(--accent); border-color: var(--accent); }
label.check input:checked::after { left: 23px; background: #fff; }
label.check input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; margin: 10px 0 18px; }
.cats .check { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) { label.check input, label.check input::after { transition: none; } }

/* Players and playlists: tiles that open, like a row in the player's Settings */
details.dev, details.pl { margin-bottom: 8px; }
details.dev > summary, details.pl > summary { padding: 16px 48px 16px 16px; font-size: 1.05rem; font-weight: 400; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
details.dev > summary b, details.pl > summary b { font-weight: 500; }
details.dev > summary .meta, details.pl > summary .meta { margin-left: auto; }
details.dev > form, details.pl > form { padding: 0 16px 16px; }
details[open].dev, details[open].pl { border-color: var(--accent); }
.acct .dot { display: inline-block; margin-right: 8px; }
.tag { font-size: 0.78rem; font-weight: 500; padding: 2px 9px; border-radius: 99px; background: var(--page); color: var(--text); }
.tag.ok { background: var(--accent); color: var(--on-accent); }
.tag.warn { background: #4a3f2a; color: #ffd27a; }
.code { background: var(--tile); border: 1px dashed var(--accent); border-radius: 12px; padding: 14px 16px; max-width: none; }
.code b { font-size: 1.6rem; letter-spacing: 0.12em; margin: 0 14px 0 8px; }
.flash { padding: 12px 16px; border-radius: 12px; background: #2f4048; border: 1px solid var(--accent); max-width: none; }
.flash.bad { background: #47323a; border-color: #ff9c8f; }
table { border-collapse: collapse; width: 100%; max-width: 520px; }
th, td { text-align: left; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); }
th { color: var(--dim); font-weight: 500; font-size: 0.9rem; }
.acct-foot { max-width: 1040px; padding-top: 0; padding-bottom: 40px; color: var(--dim); font-size: 0.88rem; }
.acct-foot p { max-width: none; margin: 0; border-top: 1px solid var(--rule); padding-top: 18px; }

@media (max-width: 700px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 18px 14px; }
  /* A player's or playlist's details go on their own line under its name. */
  details.dev > summary .meta, details.pl > summary .meta { flex-basis: 100%; margin-left: 17px; }
  details.pl > summary .meta { margin-left: 0; }
  .acct .brand img { width: 120px; }
}

.mono { font-family: ui-monospace, Consolas, monospace; color: var(--text, #eceff4); user-select: all; }
.acct .hint.mac { grid-column: 1 / -1; margin: 0; }
