/* CGPA Studio — responsive light and dark themes. */
:root {
  color-scheme: light;
  --bg: #f4f7f5;
  --surface: #fff;
  --glass: #ffffffbd;
  --ink: #202b25;
  --muted: #65736b;
  --line: #dfe6e1;
  --accent: #22634b;
  --accentSolid: #22634b;
  --soft: #e4eee7;
  --hover: #eaf0ec;
  --orange: #a36a36;
  --chart2: #637b9c;
  --warn: #fff3de;
  --warnInk: #80521c;
  --bad: #b14343;
  --grade-high: #22634b;
  --grade-good: #3e647d;
  --grade-mid: #8a651e;
  --grade-low: #9a513f;
  --status-improve: #92651a;
  --status-clearance: #386b91;
  --status-carry: #765b94;
  --status-improved: #28704f;
  --bar: 64px;
  --side: 248px;
  --shadow: 0 16px 48px #223c2c15;
  --focus: #398362;
  --scrim: #13241b26;
  --track: #dbe4dd;
}

:root[data-theme=dark] {
  color-scheme: dark;
  --bg: #171d1a;
  --surface: #222b25;
  --glass: #222b25dc;
  --ink: #e8eee9;
  --muted: #a2b2a8;
  --line: #364239;
  --accent: #9acdb0;
  --accentSolid: #34714e;
  --soft: #2d4034;
  --hover: #2b362e;
  --orange: #d6a56e;
  --chart2: #9eb5d6;
  --warn: #3b3022;
  --warnInk: #e7c491;
  --bad: #f09595;
  --grade-high: #9acdb0;
  --grade-good: #a4c2dc;
  --grade-mid: #e1bd78;
  --grade-low: #e7a38d;
  --status-improve: #e0bd78;
  --status-clearance: #9ec5e3;
  --status-carry: #c5b3e5;
  --status-improved: #9acdb0;
  --shadow: 0 16px 50px #0005;
  --focus: #a1cdb2;
  --scrim: #0006;
  --track: #3d4c42;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(ellipse at 6% 0%,var(--soft),transparent 45%),var(--bg);
  background-attachment: fixed;
  font: 14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,input,select {
  font: inherit;
  color: inherit;
}

button,select,input[type=search],input[type=number],.filterMenu>summary {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 7px 11px;
  background: var(--surface);
}

button,summary,select {
  cursor: pointer;
}

button {
  font-weight: 550;
}

button:hover,summary:hover {
  background: var(--hover);
}

button:disabled {
  opacity: .45;
  cursor: default;
}

button:focus-visible,select:focus-visible,input:focus-visible,summary:focus-visible,a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

a {
  color: var(--accent);
}

p {
  margin: 6px 0;
  color: var(--muted);
}

small,.muted,.foot {
  font-size: 12px;
  color: var(--muted);
}

h1,h2,h3 {
  margin: 0;
  font-weight: 650;
}

h1 {
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -.7px;
}

h2 {
  font-size: 16px;
  letter-spacing: -.2px;
}

h3 {
  font-size: 14px;
  margin: 14px 0 6px;
}

.primaryBtn {
  background: var(--accentSolid);
  border-color: var(--accentSolid);
  color: #fff;
}

.primaryBtn:hover {
  background: var(--accentSolid);
  filter: brightness(1.1);
}

.topbar {
  height: var(--bar);
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(14px,3vw,40px);
  background: var(--glass);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(22px) saturate(130%);
  -webkit-backdrop-filter: blur(22px) saturate(130%);
  gap: 12px;
}

.topbrand,.topActions {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.topbrand b {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -.45px;
  white-space: nowrap;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .09em;
  padding-right: 12px;
  border-right: 1px solid var(--line);
}

.logo span {
  border-bottom: 2px solid var(--orange);
}

.iconBtn {
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
  border: 0;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 10px;
}

.iconBtn[aria-expanded=true] {
  background: var(--soft);
  color: var(--accent);
}

.menu,.filterMenu {
  position: relative;
  margin: 0;
}

.menu>summary,.filterMenu>summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  font-size: 13px;
}

.menu>summary::-webkit-details-marker,.filterMenu>summary::-webkit-details-marker {
  display: none;
}

.menu>summary {
  border: 0;
  border-radius: 9px;
  background: transparent;
  padding: 8px;
}

.menu>summary:hover {
  background: var(--hover);
}

.menuBody,.filterBody {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 180px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  z-index: 25;
  box-shadow: var(--shadow);
}

.menuBody {
  right: 0;
  left: auto;
  display: grid;
  gap: 3px;
}

.menuBody button {
  text-align: left;
  border: 0;
}

.menuBody small {
  padding: 4px 8px;
}

.filterBody {
  max-height: 320px;
  overflow: auto;
  max-width: 90vw;
}

.filterBody label {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 8px;
  padding: 7px;
  cursor: pointer;
  color: var(--ink) !important;
}

.filterBody input {
  accent-color: var(--accentSolid);
}

.filterActions {
  display: flex;
  gap: 4px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--line);
}

.filterActions button {
  flex: 1;
  min-height: 29px;
  font-size: 12px;
}

.sidebar {
  position: fixed;
  top: calc(var(--bar) + 12px);
  bottom: 12px;
  left: 12px;
  width: min(var(--side),calc(100vw - 28px));
  padding: 12px;
  background: var(--glass);
  backdrop-filter: blur(28px) saturate(145%);
  -webkit-backdrop-filter: blur(28px) saturate(145%);
  border: 1px solid var(--line);
  border-radius: 17px;
  box-shadow: var(--shadow);
  overflow-y: auto;
  z-index: 45;
  transform: translateX(0);
  opacity: 1;
  transition: transform .19s ease,opacity .19s ease,visibility .19s;
  visibility: visible;
}

.sidebarHidden .sidebar {
  transform: translateX(calc(-100% - 20px));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.sideNav {
  display: grid;
  gap: 3px;
}

.navLink {
  border: 0;
  background: transparent;
  width: 100%;
  display: flex;
  gap: 10px;
  align-items: center;
  text-align: left;
  padding: 9px 12px;
  font-weight: 500;
  min-height: 40px;
  border-radius: 9px;
}

.navLink.active {
  background: var(--soft);
  color: var(--accent);
  font-weight: 650;
}

.navLink svg {
  flex: none;
  width: 17px;
  height: 17px;
}

.navLabel {
  font-size: 11px;
  font-weight: 650;
  color: var(--muted);
  margin: 18px 12px 4px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.semLink {
  justify-content: space-between;
}

.navGpa {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.sidebarScrim {
  position: fixed;
  inset: var(--bar) 0 0;
  background: var(--scrim);
  z-index: 40;
  border: 0;
  border-radius: 0;
  padding: 0;
  display: none;
}

.sidebarScrim:hover {
  background: var(--scrim);
}

body:not(.sidebarHidden) .sidebarScrim {
  display: block;
}

/* Main geometry never depends on navigation state. */

main {
  width: min(100%,1040px);
  margin-inline: auto;
  padding: 34px 32px 68px;
  min-width: 0;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 22px;
}

.progressline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.progressTrack {
  width: 84px;
  height: 4px;
  background: var(--track);
  border-radius: 4px;
  overflow: hidden;
}

.progressTrack>div {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 0;
  margin: 0 0 30px;
  padding: 19px 0;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 16px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.metric {
  padding: 0 19px;
  border-left: 1px solid var(--line);
  min-width: 0;
}

.metric:first-child {
  border-left: 0;
}

.metric strong {
  display: block;
  font-size: 30px;
  font-weight: 650;
  line-height: 1.18;
  letter-spacing: -1.1px;
  font-variant-numeric: tabular-nums;
  margin: 5px 0 4px;
}

.metric small {
  display: block;
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.metric small:last-child {
  font-size: 11px;
}

.metric.primary strong {
  color: var(--accent);
}

.panel {
  min-width: 0;
  margin: 0 0 32px;
}

.panel+.panel {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.head,.actions,.formrow {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  align-items: center;
  min-width: 0;
}

.head {
  justify-content: space-between;
  margin-bottom: 12px;
}

.head>div {
  min-width: 0;
}

.head p {
  font-size: 12px;
  margin: 0;
}

.actions {
  gap: 5px;
}

.actions button,.actions select {
  font-size: 12px;
  min-height: 32px;
}

#clear,#reset {
  color: var(--bad);
  background: transparent;
  border: 0;
}

#bulk {
  background: transparent;
  border: 0;
}

#subtitle {
  color: var(--muted);
  font-size: 12px;
}

#courses {
  min-width: 0;
  position: relative;
}

.courseGroup {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px 0 0;
  padding: 0 0 9px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  font-weight: 650;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.courseGroup span {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.course {
  display: grid;
  grid-template-columns: minmax(0,1.5fr) minmax(110px,.85fr) 63px;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  min-width: 0;
}

.course>div {
  min-width: 0;
}

.course .name {
  line-height: 1.35;
}

.course .code {
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  margin-top: 3px;
}

.courseName {
  display: inline;
  border: 0;
  border-radius: 3px;
  background: transparent;
  padding: 0;
  min-height: 0;
  text-align: left;
  font: inherit;
  font-weight: 550;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
}

.courseName:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
  background: transparent;
}

.courseName[data-status=eligible] {
  color: var(--status-improve);
}

.courseName[data-status=clearance] {
  color: var(--status-clearance);
}

.courseName[data-status=carry] {
  color: var(--status-carry);
}

.courseName[data-status=improvement] {
  color: var(--status-improved);
}

.courseName[data-status=failed] {
  color: var(--bad);
}

.courseFlag {
  display: none;
}

.grade {
  font-size: 17px;
  line-height: 1.3;
  font-weight: 650;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.grade small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 2px;
}

.grade small.latestGrade {
  font-size: 10px;
  font-weight: 550;
}

.gradeTone[data-tone=high] {
  color: var(--grade-high);
}

.gradeTone[data-tone=good] {
  color: var(--grade-good);
}

.gradeTone[data-tone=mid] {
  color: var(--grade-mid);
}

.gradeTone[data-tone=low] {
  color: var(--grade-low);
}

.gradeTone[data-tone=fail] {
  color: var(--bad);
}

.gradeTone[data-tone=unset] {
  color: var(--muted);
}

input[type=range] {
  display: block;
  width: 100%;
  margin: 0;
  height: 24px;
  min-width: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}

input[type=range]::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 6px;
  background: linear-gradient(90deg,var(--accent) var(--fill,0%),var(--track) var(--fill,0%));
}

input[type=range]::-moz-range-track {
  height: 5px;
  border-radius: 6px;
  background: var(--track);
}

input[type=range]::-moz-range-progress {
  height: 5px;
  border-radius: 6px;
  background: var(--accent);
}

input[type=range]::-webkit-slider-thumb {
  appearance: none;
  width: 17px;
  height: 17px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
  margin-top: -6px;
}

input[type=range]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--accent);
}

.ticks {
  display: none;
}

.statusKey {
  margin: 0 0 7px;
  font-size: 11px;
  color: var(--muted);
}

.statusKey summary {
  list-style: none;
  font-weight: 500;
  display: inline-block;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.statusKey summary::-webkit-details-marker {
  display: none;
}

.courseLegend {
  display: flex;
  gap: 8px 14px;
  flex-wrap: wrap;
  font-size: 11px;
  margin: 9px 0;
}

.courseLegend span:before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  margin-right: 5px;
  vertical-align: 1px;
}

.courseLegend .eligible {
  color: var(--status-improve);
}

.courseLegend .clearance {
  color: var(--status-clearance);
}

.courseLegend .carry {
  color: var(--status-carry);
}

.courseLegend .improvement {
  color: var(--status-improved);
}

.courseLegend .failed {
  color: var(--bad);
}

.formrow {
  align-items: flex-end;
  margin: 14px 0 18px;
}

.formrow>* {
  min-width: 0;
  max-width: 100%;
}

.formrow label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  color: var(--muted);
}

.formrow label select,.formrow label input {
  font-size: 13px;
  color: var(--ink);
  max-width: 100%;
}

#examCourse {
  max-width: min(440px,75vw);
}

#search {
  flex: 1;
  min-width: min(210px,100%);
}

#target {
  width: 116px;
}

.planSettings {
  border-bottom: 1px solid var(--line);
  padding: 8px 0 14px;
  font-size: 13px;
}

details {
  margin: 12px 0;
}

summary {
  font-weight: 550;
  cursor: pointer;
}

.menu,.filterMenu {
  margin: 0;
}

.tablewrap {
  width: 100%;
  max-width: 100%;
  overflow: auto;
  scrollbar-width: thin;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

th,td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 12px 9px;
  white-space: nowrap;
}

th {
  font-size: 11px;
  color: var(--muted);
  font-weight: 650;
}

td.wrap {
  white-space: normal;
  min-width: 150px;
  overflow-wrap: anywhere;
}

tr:hover:not(.planTerm):not(.planGroup) {
  background: var(--hover);
}

.planTerm td {
  background: var(--soft);
  font-weight: 650;
}

.planGroup td {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.notice {
  padding: 10px 12px;
  margin: 10px 0;
  background: var(--warn);
  border-left: 2px solid var(--orange);
  color: var(--warnInk);
  font-size: 13px;
  border-radius: 0 8px 8px 0;
}

.good {
  color: var(--accent);
  font-weight: 600;
}

.bad {
  color: var(--bad);
}

.chart {
  display: block;
  width: 100%;
  max-height: 270px;
}

.bargrid {
  display: grid;
  grid-template-columns: repeat(11,minmax(0,1fr));
  align-items: end;
  gap: 4px;
  height: 132px;
}

.barcol {
  text-align: center;
  font-size: 11px;
  min-width: 0;
}

.bar {
  background: var(--accentSolid);
  width: 52%;
  min-height: 2px;
  border-radius: 3px 3px 0 0;
  margin: 4px auto;
}

.chart+p {
  font-size: 11px;
}

#creditAudit {
  font-size: 12px;
}

#courseTable>p {
  font-size: 12px;
}

#targetView .metrics {
  margin: 22px 0 16px;
}

#targetView .metric strong {
  font-size: 26px;
}

#targetView .metric small {
  min-height: 32px;
}

#rulesView p {
  max-width: 75ch;
  line-height: 1.7;
  margin: 12px 0;
}

#courseDialog {
  width: min(540px,calc(100% - 24px));
  max-height: calc(100dvh - 32px);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0;
  background: var(--glass);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  color: var(--ink);
  overflow: auto;
  box-shadow: var(--shadow);
}

#courseDialog::backdrop {
  background: var(--scrim);
  backdrop-filter: blur(3px);
}

.detailHead,.detailFooter {
  padding: 19px 22px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.detailHead {
  border-bottom: 1px solid var(--line);
}

.detailHead h2 {
  font-size: 18px;
  overflow-wrap: anywhere;
}

.detailHead .code {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
}

.detailBody {
  padding: 18px 22px;
}

.detailFacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
}

.detailFacts>div {
  min-width: 0;
  border-bottom: 1px solid var(--line);
  padding-bottom: 9px;
}

.detailFacts strong {
  display: block;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.detailBody table {
  table-layout: fixed;
}

.detailBody td,.detailBody th {
  padding: 7px 4px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.detailList {
  display: grid;
  gap: 8px;
  font-size: 12px;
}

.detailList>div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.detailList span:last-child {
  text-align: right;
  overflow-wrap: anywhere;
}

.detailFooter {
  border-top: 1px solid var(--line);
  justify-content: flex-end;
}

@media (min-width:1600px) {
  body:not(.sidebarHidden) .sidebarScrim {
    display: none;
  }
}

@media (max-width:760px) {
  html {
    scrollbar-gutter: auto;
  }
  .topbar {
    padding: 0 12px;
    gap: 6px;
  }
  .topbrand,.topActions {
    gap: 7px;
  }
  .topbrand b {
    font-size: 14px;
  }
  .logo {
    font-size: 11px;
    padding-right: 7px;
  }
  .topActions .menu>summary {
    padding: 6px;
  }
  .iconBtn {
    width: 32px;
    height: 32px;
  }
  main {
    padding: 25px 18px 48px;
  }
  h1 {
    font-size: 23px;
  }
  header {
    gap: 9px;
    margin-bottom: 17px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
    row-gap: 18px;
    padding: 16px 0;
    margin-bottom: 23px;
  }
  .metric {
    padding: 0 15px;
  }
  .metric:nth-child(3) {
    border-left: 0;
  }
  .metric strong {
    font-size: 26px;
  }
  .metric small {
    font-size: 11px;
  }
  .course {
    grid-template-columns: minmax(0,1fr) 59px;
    gap: 5px 15px;
    padding: 13px 0;
  }
  .course .control {
    grid-column: 1;
    grid-row: 2;
  }
  .course .grade {
    grid-column: 2;
    grid-row: 1/3;
  }
  .courseName {
    font-size: 14px;
  }
  .course .code {
    font-size: 10px;
  }
  .head {
    align-items: flex-start;
  }
  .actions {
    width: auto;
  }
  #targetView .metric small {
    min-height: 0;
  }
  th,td {
    font-size: 12px;
    padding: 10px 7px;
  }
  .barcol {
    font-size: 9px;
  }
  .filterMenu {
    position: static;
  }
  .formrow {
    position: relative;
  }
  .filterBody {
    left: 0;
    top: 100%;
    z-index: 28;
  }
  .filterBody label {
    font-size: 13px;
  }
  .detailHead,.detailFooter,.detailBody {
    padding: 14px 16px;
  }
}

@media (max-width:360px) {
  .topbar {
    padding: 0 8px;
  }
  .topbrand,.topActions {
    gap: 4px;
  }
  .logo {
    padding-right: 5px;
  }
  .topbrand b {
    font-size: 13px;
  }
  .menu>summary {
    font-size: 12px;
  }
  .iconBtn {
    width: 29px;
  }
  main {
    padding-inline: 13px;
  }
  .metric strong {
    font-size: 23px;
  }
  .courseGroup {
    margin-top: 18px;
  }
}

@media (prefers-reduced-motion:reduce) {
  .sidebar {
    transition: none;
  }
}

#editDialog {
  width: min(500px,calc(100% - 24px));
  max-height: calc(100dvh - 32px);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

#editDialog::backdrop {
  background: var(--scrim);
  backdrop-filter: blur(4px);
}

.editFields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.editFields label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  color: var(--muted);
  min-width: 0;
}

.editFields label:nth-child(2) {
  grid-column: 1/-1;
}

.editFields input,.editFields select,#semName {
  min-width: 0;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 8px 10px;
  color: var(--ink);
}

#settingsView pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--soft);
  padding: 14px;
  border-radius: 10px;
  font-size: 12px;
}

#settingsView .dangerZone {
  border-top: 1px solid var(--line);
}

#resetAll,#clearTerm {
  color: var(--bad);
}

#editTable td:nth-child(2) {
  white-space: normal;
  min-width: 180px;
}

#editTable .editLink {
  border: 0;
  background: none;
  text-align: left;
  color: var(--accent);
  padding: 0;
  min-height: 30px;
  font-weight: 600;
}

#settingsView .panel {
  margin-bottom: 16px;
}

#settingsView .formrow label {
  max-width: 100%;
}

@media (max-width:480px) {
  .editFields {
    grid-template-columns: 1fr;
  }
  .editFields label:nth-child(2) {
    grid-column: auto;
  }
}
