/* Shared readable type scale for the picker and its dialogs. */
body {
  font-size: 15px;
  line-height: 1.5;
  --muted: #52666b;
}
body.dark {
  --muted: #bbcec7;
}
button,
input,
select,
textarea {
  font-family: "DM Sans", "Segoe UI", Arial, sans-serif;
}
input::placeholder,
textarea::placeholder {
  color: #64777d;
  opacity: 1;
}
.dark input::placeholder,
.dark textarea::placeholder {
  color: #a7beb8;
}
.panel-heading h2 {
  font-size: 18px;
  line-height: 1.4;
}
.panel-heading p,
.intro p,
.wheel-caption {
  font-size: 14px;
  line-height: 1.6;
}
.entry .entry-label {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}
.entry {
  min-height: 38px;
}
.entry .weight {
  width: 42px;
  min-width: 42px;
  font-size: 13px;
  color: var(--ink);
  padding: 5px 2px;
}
.entry-odds {
  font-size: 12px;
  min-width: 42px;
}
.entry .entry-action {
  font-size: 16px;
  width: 20px;
  color: #526c6c;
}
.drag-handle {
  color: #627d77;
  font-size: 15px;
}
.entry-table-heading {
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.6px;
}
.entry-table-heading > button {
  font-size: 11px;
  font-weight: 600;
}
.entry-table-heading > span:last-child {
  width: 45px;
  margin-right: 79px;
}
.tabs button {
  font-size: 14px;
  font-weight: 600;
}
.tabs b {
  font-size: 12px;
}
.mode-box {
  align-items: center;
  gap: 10px;
}
.mode-box > div {
  min-width: 0;
}
.mode-box strong {
  font-size: 13px;
  line-height: 1.5;
}
.mode-box p {
  font-size: 12px;
  line-height: 1.5;
}
.mode-box select {
  font-size: 13px;
  max-width: 125px;
  min-width: 105px;
  padding: 8px;
}
.wheel-badge {
  font-size: 10px;
  letter-spacing: 0.4px;
}
.wheel-name button {
  font-size: 15px;
  font-weight: 600;
}
.wheel-footer {
  font-size: 12px;
  flex-wrap: wrap;
}
.wheel-footer button {
  font-size: 12px;
}
.wheel-caption {
  padding-left: 20px;
}
.spin-button {
  font-size: 16px;
  min-height: 48px;
  font-weight: 700;
}
.spin-controls p,
.spin-controls p > span {
  font-size: 12px;
  line-height: 1.8;
}
.spin-controls kbd {
  font-size: 11px;
}
.sidebar {
  overflow-y: auto;
  scrollbar-width: thin;
}
.side-nav button {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}
.sidebar .nav-tag {
  display: none;
}
.nav-label {
  font-size: 11px;
  color: #a2bebf;
  letter-spacing: 1.3px;
}
.side-nav button > span:first-child {
  color: #a7c2c3;
}
.workspace-label {
  font-size: 12px;
}
.workspace-label > div {
  min-width: 0;
  flex: 1;
}
.workspace-label small {
  font-size: 11px;
  color: #b2c9c9;
  line-height: 1.5;
}
.sidebar-bottom {
  padding-top: 20px;
}
.sidebar-status {
  font-size: 11px;
  color: #a7c2c3;
}
.sidebar-status > span {
  color: #a7c2c3;
}
.help-link > span {
  font-size: 13px;
}
.tip-card > span,
.tip-card button {
  font-size: 12px;
  color: #e6d2b5;
  line-height: 1.6;
}
.tip-card p {
  font-size: 18px;
  line-height: 1.5;
}
.header-actions > button,
.command-search,
.breadcrumb {
  font-size: 13px;
}
#account-button {
  font-size: 13px;
  color: var(--ink) !important;
}
.header-actions > button {
  white-space: nowrap;
}
.cloud-toolbar {
  font-size: 12px;
  line-height: 1.6;
  gap: 10px;
}
.cloud-toolbar > button {
  font-size: 12px;
  white-space: nowrap;
}
.session-tab,
.session-bar > button {
  font-size: 13px;
}
.session-tab.active {
  font-weight: 600;
}
.entry-actions {
  gap: 10px;
  row-gap: 6px;
}
.entry-actions button {
  font-size: 12px;
  font-weight: 500;
}
.panel-heading button,
.list-tools input {
  font-size: 13px;
}
.list-tools input {
  padding: 10px;
}
#new-entry {
  font-size: 14px;
  min-height: 42px;
}
#add-form button {
  width: 40px;
  height: 42px;
}
.autosave {
  font-size: 12px;
  line-height: 1.6;
}
.advanced-tools button {
  font-size: 12px;
  padding: 10px 12px;
}
.quick-insights small,
.quick-insights > button,
.quick-insights > button > span {
  font-size: 12px;
}
.quick-insights strong {
  font-size: 14px;
}
.quick-insights {
  flex-wrap: wrap;
}
.section-heading .eyebrow {
  font-size: 11px;
}
.section-heading > button {
  font-size: 13px;
}
.template-grid > button {
  min-height: 135px;
}
.template-category {
  font-size: 10px;
  letter-spacing: 0.5px;
  line-height: 1.6;
}
.template-grid strong {
  font-size: 16px;
  line-height: 1.5;
}
.template-grid p {
  font-size: 13px;
  line-height: 1.6;
}
.template-grid > button > div {
  min-width: 0;
}
.template-grid > button > span:last-child {
  display: none;
}
.field,
.toggle {
  font-size: 14px;
  line-height: 1.6;
}
.field input,
.field select,
#studio-settings textarea {
  font-size: 14px;
  line-height: 1.5;
}
.settings-section-label {
  font-size: 11px;
  font-weight: 600;
}
.settings-actions button,
.custom-palette-button {
  font-size: 13px;
  line-height: 1.5;
}
.settings-actions {
  row-gap: 10px;
}
.soft-button,
.dialog-actions button,
.winner-share-actions button {
  font-size: 13px;
  line-height: 1.5;
}
#dialog-body p {
  font-size: 14px;
  line-height: 1.7;
}
.result-row strong {
  font-size: 14px;
}
.result-row span {
  font-size: 12px;
}
.result-switch button,
.results-tools button {
  font-size: 13px;
}
.tool-tile strong,
.cloud-wheel strong {
  font-size: 15px;
}
.tool-tile small,
.cloud-wheel small,
.cloud-wheel-actions button {
  font-size: 12px;
  line-height: 1.5;
}
.command-list button {
  font-size: 14px;
}
.command-list button > span {
  font-size: 12px;
}
.cloud-wheel-actions {
  flex-wrap: wrap;
}
.form-error,
.shared-banner,
.integration-note,
.idea-row {
  font-size: 14px !important;
}
.shared-banner input,
.shared-banner button,
.share-link-box > a {
  font-size: 13px;
}
.dashboard-results .result-row,
.dashboard-results .result-row span {
  font-size: 13px;
}
.bulk-toolbar button,
.bulk-toolbar strong {
  font-size: 12px;
}
.score-bar-row,
.score-bar-row b,
.odds-row {
  font-size: 13px;
}
footer p,
footer button,
footer > span:not(.brand) {
  font-size: 12px;
  line-height: 1.6;
}
.dark .entry .entry-action,
.dark .drag-handle,
.dark .wheel-caption,
.dark .entry-odds {
  color: #bfd0c9;
}
.dark .panel-heading p,
.dark .intro p,
.dark .spin-controls p,
.dark .spin-controls p > span,
.dark .session-bar > button,
.dark .session-tab,
.dark .wheel-footer,
.dark .autosave,
.dark .template-category,
.dark .template-grid p,
.dark footer p,
.dark footer button,
.dark footer > span:not(.brand) {
  color: #bbcec7;
}
.dark .entry .weight {
  color: #edf4ef;
}
.dark .tabs button,
.dark .tabs button.active,
.dark .entry-table-heading,
.dark .entry-table-heading > button,
.dark .settings-section-label,
.dark .eyebrow,
.dark .section-heading .eyebrow,
.dark .section-heading > button,
.dark .quick-insights strong,
.dark .quick-insights small,
.dark .quick-insights > button,
.dark .quick-insights > button > span,
.dark .entry-actions button,
.dark .panel-heading button,
.dark .advanced-tools button,
.dark .cloud-toolbar,
.dark .cloud-toolbar > button,
.dark .session-tab.active,
.dark .breadcrumb > span,
.dark .command-search,
.dark .custom-palette-button,
.dark .bulk-toolbar strong,
.dark .bulk-toolbar button,
.dark .chance-result {
  color: #bfd1c9;
}
@media (min-width: 1251px) {
  .template-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .template-grid > button {
    min-height: 120px;
  }
  .wheel-badge {
    display: none;
  }
}
@media (max-width: 1250px) {
  .wheel-badge {
    display: none;
  }
  .wheel-name button {
    max-width: 180px;
  }
  .command-search {
    display: none;
  }
  .workspace {
    grid-template-columns: minmax(0, 1.2fr) minmax(350px, 1fr);
  }
}
@media (min-width: 521px) and (max-width: 1050px) {
  .side-nav button {
    font-size: 0;
  }
  .sidebar .nav-label,
  .sidebar .workspace-label,
  .sidebar .sidebar-bottom,
  .sidebar-status {
    display: none;
  }
}
@media (max-width: 840px) {
  .workspace {
    grid-template-columns: 1fr;
  }
  .wheel-name button {
    max-width: 350px;
  }
  .wheel-toolbar > div:last-child button {
    width: 30px;
  }
  .cloud-toolbar {
    flex-wrap: wrap;
  }
  .wheel-footer {
    font-size: 12px;
  }
  .quick-insights {
    justify-content: flex-start;
    gap: 16px;
  }
  .quick-insights > button {
    display: none;
  }
}
@media (max-width: 520px) {
  body {
    font-size: 15px;
  }
  .app-header {
    gap: 5px;
    padding: 0 12px;
  }
  .breadcrumb {
    font-size: 13px;
    gap: 6px;
  }
  .header-actions {
    gap: 2px;
  }
  .header-actions > button {
    font-size: 12px;
    padding: 8px;
  }
  #account-button {
    font-size: 12px;
    max-width: 75px;
  }
  .intro h1 {
    font-size: 28px;
  }
  .intro p {
    font-size: 14px;
    max-width: none;
  }
  .eyebrow {
    font-size: 11px;
    letter-spacing: 1px;
    line-height: 1.7;
  }
  .session-bar {
    gap: 5px;
    flex-wrap: wrap;
  }
  .session-tab {
    font-size: 12px;
    max-width: 210px;
  }
  .session-tab > span:not(.tab-dot):not(.tab-close) {
    max-width: 145px;
  }
  .session-bar > button {
    font-size: 12px;
  }
  .wheel-toolbar {
    flex-wrap: wrap;
    padding: 16px 14px 7px;
  }
  .wheel-name button {
    font-size: 14px;
    max-width: 210px;
  }
  .wheel-toolbar > div:last-child {
    margin-left: auto;
  }
  .wheel-caption {
    font-size: 13px;
    padding: 4px 14px;
  }
  .spin-controls p > span {
    display: block;
    margin: 4px 0 0;
  }
  .spin-controls p {
    font-size: 12px;
  }
  .wheel-footer {
    gap: 10px;
    font-size: 12px;
  }
  .wheel-footer > span {
    flex-basis: 100%;
  }
  .palette-mini {
    margin-left: 0;
    margin-right: auto;
  }
  .palette-mini button {
    width: 15px;
    height: 15px;
  }
  .wheel-footer > button {
    font-size: 12px;
  }
  .tabs {
    gap: 20px;
    padding: 0 15px;
  }
  .tabs button {
    font-size: 14px;
  }
  .settings-tab > span {
    font-size: 12px;
  }
  .panel {
    padding: 16px;
  }
  .panel-heading {
    gap: 8px;
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .panel-heading h2 {
    font-size: 17px;
  }
  .panel-heading p {
    font-size: 13px;
  }
  .panel-heading > button {
    font-size: 12px;
  }
  .entry {
    gap: 5px;
  }
  .entry .entry-label {
    font-size: 15px;
  }
  .entry .weight {
    width: 34px;
    min-width: 34px;
    font-size: 13px;
  }
  .entry .entry-action {
    width: 17px;
    font-size: 16px;
  }
  .entry-odds {
    font-size: 12px;
    min-width: 40px;
  }
  .drag-handle {
    font-size: 14px;
    padding: 0 2px;
  }
  .entry-table-heading > span:last-child {
    margin-right: 66px;
  }
  .entry-actions {
    column-gap: 11px;
  }
  .entry-actions button {
    font-size: 12px;
  }
  .mode-box {
    padding: 12px 9px;
    gap: 8px;
  }
  .mode-symbol {
    display: none;
  }
  .mode-box select {
    font-size: 12px;
    min-width: 105px;
  }
  .mode-box strong {
    font-size: 13px;
  }
  .mode-box p {
    font-size: 12px;
  }
  .autosave {
    font-size: 12px;
  }
  .advanced-tools button {
    font-size: 12px;
    padding: 9px 10px;
  }
  .advanced-tools {
    gap: 7px;
  }
  .quick-insights {
    gap: 13px;
  }
  .quick-insights > div {
    flex-wrap: wrap;
    gap: 5px;
  }
  .quick-insights small {
    font-size: 12px;
    max-width: 85px;
    line-height: 1.6;
  }
  .quick-insights strong {
    font-size: 14px;
  }
  .section-heading {
    gap: 10px;
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .section-heading h2 {
    font-size: 23px;
  }
  .section-heading .eyebrow {
    font-size: 10px;
    line-height: 1.6;
  }
  .section-heading > button {
    font-size: 12px;
    max-width: none;
    text-align: left;
    padding: 0;
  }
  .template-grid {
    grid-template-columns: 1fr;
  }
  .template-grid > button {
    flex-direction: row;
    padding: 18px;
    min-height: 115px;
    gap: 14px;
  }
  .template-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }
  .template-category {
    font-size: 10px;
    letter-spacing: 0.5px;
    margin-top: 0;
  }
  .template-grid strong {
    font-size: 16px;
  }
  .template-grid p {
    font-size: 13px;
  }
  .sidebar nav.side-nav button {
    font-size: 10px;
    gap: 4px;
    padding: 4px 5px;
  }
  .sidebar nav.side-nav button > span:first-child {
    font-size: 20px;
  }
  .sidebar {
    height: 68px;
  }
  main {
    padding-bottom: 90px;
  }
  .tool-gallery {
    grid-template-columns: 1fr;
  }
  .tool-tile strong {
    font-size: 15px;
  }
  .tool-tile small {
    font-size: 13px;
  }
  .cloud-toolbar {
    font-size: 12px;
    gap: 8px;
  }
  .cloud-toolbar > button {
    font-size: 12px;
  }
  .shared-banner {
    font-size: 14px;
    gap: 10px;
  }
  .shared-banner input {
    max-width: 100%;
  }
  .shared-banner button {
    font-size: 13px;
  }
  .overview-card small,
  .overview-card button {
    font-size: 13px;
  }
  .header-actions #theme {
    padding: 5px;
    font-size: 20px;
  }
  footer p {
    font-size: 12px;
    min-width: 160px;
  }
}
