.research-body {
  max-width: 1320px;
  margin: 0 auto 80px;
  padding: 0 24px;
}
.research-toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: end;
  margin: 22px 0;
}
.research-toolbar label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 150px;
  flex: 1;
}
.research-toolbar input,
.research-toolbar select {
  width: 100%;
}
.research-body button {
  min-height: 44px;
  cursor: pointer;
}
.research-body button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.research-body h1 {
  font-size: clamp(28px, 4vw, 44px);
}
.research-notice {
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 12px;
  line-height: 1.8;
}
.research-tabs {
  display: flex;
  gap: 12px;
  margin: 20px 0;
  flex-wrap: wrap;
}
#talent-summary {
  font-size: 22px;
  color: var(--gold);
  font-weight: 700;
}
#research-status {
  min-height: 28px;
  line-height: 1.7;
}
#talent-trees {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.talent-tree {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: 14px;
}
.talent-tree h3 {
  border-bottom: 2px solid var(--gold);
  padding-bottom: 16px;
  font-size: 23px;
}
.talent-row > p {
  font-size: 12px;
  opacity: 0.8;
  margin: 20px 0 10px;
}
.talent-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.talent-node {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.talent-node.allocated {
  border-color: var(--gold);
  box-shadow: inset 0 3px var(--gold);
}
.talent-node strong {
  font-size: 14px;
  line-height: 1.5;
}
.talent-node small {
  font-size: 12px;
  line-height: 1.5;
}
.talent-controls {
  display: flex;
  gap: 8px;
  margin-top: auto;
}
.talent-controls button {
  flex: 1;
  font-size: 22px;
  padding: 2px;
}
.loot-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.loot-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.loot-card h3 {
  font-size: 20px;
  margin: 0;
}
.loot-card p {
  margin: 0;
  line-height: 1.7;
}
.loot-card small {
  line-height: 1.6;
}
.loot-card button {
  margin-top: auto;
}
.loot-quality {
  font-size: 12px;
  font-weight: bold;
}
.quality-3 {
  color: #69b9ff;
}
.quality-4 {
  color: #c18aff;
}
html[data-theme="light"] .quality-3 {
  color: #145799;
}
html[data-theme="light"] .quality-4 {
  color: #7145a0;
}
#talent-share-url {
  width: 100%;
}
.research-check {
  display: flex;
  align-items: center;
  gap: 9px;
}
.research-check input {
  width: 20px;
  height: 20px;
}
.research-body [hidden] {
  display: none !important;
}
@media (max-width: 1050px) {
  #talent-trees {
    grid-template-columns: 1fr;
  }
  .talent-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .loot-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .research-body {
    padding: 0 16px;
  }
  .talent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .loot-results {
    grid-template-columns: 1fr;
  }
  .research-toolbar label {
    min-width: 130px;
  }
  .talent-tree {
    padding: 12px;
  }
}
/* 天賦ツリーはゲーム内の行・列を維持する。 */
.talent-class-bar {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 8px;
  margin: 20px 0;
}
.talent-class-bar button {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  padding: 10px 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: inherit;
  font-size: 13px;
}
.talent-class-bar .class-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}
.talent-class-bar button[aria-pressed="true"] {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}
.talent-build-summary {
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 12px;
  padding: 18px 22px;
  background: var(--panel);
}
.talent-build-summary p {
  margin: 5px 0;
}
.talent-intro {
  margin-top: 36px;
}
.talent-intro h2 {
  font-size: 36px;
  margin: 8px 0;
}
#talent-trees {
  gap: 16px;
  margin-top: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
#talent-trees .talent-tree {
  padding: 0;
  overflow: hidden;
  border: 1px solid #75633f;
  background: #101b21;
  color: #f8efdc;
  border-radius: 14px;
}
.talent-tree-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  background: #142023e8;
  border-bottom: 1px solid #75633f;
}
.talent-tree-heading img {
  width: 35px;
  height: 35px;
  border: 1px solid #af8b47;
  border-radius: 6px;
}
.talent-tree-heading h3 {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 21px;
  color: #e4c87d;
}
.talent-tree-heading small {
  font-size: 11px;
  color: #b9c2b9;
}
.talent-tree-heading button {
  margin-left: auto;
  min-width: 36px;
  padding: 4px;
  font-size: 21px;
  background: transparent;
  color: #dcc889;
  border: 1px solid #75633f;
  border-radius: 6px;
}
.talent-canvas {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(7, 90px);
  isolation: isolate;
  background:
    radial-gradient(ellipse at 50% 10%, #92602155, transparent 65%),
    linear-gradient(150deg, #382a22, #111d25 70%);
}
.tree-tone-1 .talent-canvas {
  background:
    radial-gradient(ellipse at 70% 20%, #a03e2455, transparent 65%),
    linear-gradient(160deg, #35221c, #1b171b 75%);
}
.tree-tone-2 .talent-canvas {
  background:
    radial-gradient(ellipse at 60% 15%, #37728866, transparent 65%),
    linear-gradient(150deg, #132f3a, #142019 80%);
}
.tree-rows-8 {
  grid-template-rows: repeat(8, 90px);
}
.tree-rows-9 {
  grid-template-rows: repeat(9, 90px);
}
.talent-connections {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  fill: none;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}
.connection-locked {
  stroke: #a89e7770;
}
.connection-ready {
  stroke: #e2c571;
  filter: drop-shadow(0 0 3px #d9bd65);
}
.talent-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.talent-row-1 {
  grid-row: 1;
}
.talent-row-2 {
  grid-row: 2;
}
.talent-row-3 {
  grid-row: 3;
}
.talent-row-4 {
  grid-row: 4;
}
.talent-row-5 {
  grid-row: 5;
}
.talent-row-6 {
  grid-row: 6;
}
.talent-row-7 {
  grid-row: 7;
}
.talent-row-8 {
  grid-row: 8;
}
.talent-row-9 {
  grid-row: 9;
}
.talent-col-1 {
  grid-column: 1;
}
.talent-col-2 {
  grid-column: 2;
}
.talent-col-3 {
  grid-column: 3;
}
.talent-col-4 {
  grid-column: 4;
}
#talent-trees .talent-icon-button {
  position: relative;
  width: 56px;
  height: 56px;
  min-height: 56px;
  display: block;
  padding: 0;
  border: 2px solid #5d9c72;
  border-radius: 7px;
  background: #0c1418;
  box-shadow: 0 2px 6px #0009;
  touch-action: manipulation;
}
#talent-trees .talent-icon-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}
#talent-trees .talent-icon-button.locked {
  border-color: #555d5b;
}
#talent-trees .talent-icon-button.locked img {
  filter: grayscale(1) brightness(0.42);
}
#talent-trees .talent-icon-button.allocated {
  border-color: #7fca79;
}
#talent-trees .talent-icon-button.maxed {
  border-color: #efc967;
  box-shadow: 0 0 9px #e8b94c66;
}
#talent-trees .talent-icon-button[aria-pressed="true"] {
  outline: 2px solid #fff1b8;
  outline-offset: 4px;
}
#talent-trees .talent-icon-button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 5px;
}
.talent-rank {
  position: absolute;
  bottom: -8px;
  right: -6px;
  padding: 1px 4px;
  border: 1px solid #6b735f;
  border-radius: 3px;
  background: #101914;
  color: #d4e3cb;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}
.maxed .talent-rank {
  color: #f5d878;
  border-color: #bf9d4f;
}
.talent-hover-label {
  display: none;
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  z-index: 5;
  white-space: nowrap;
  background: #101716;
  color: #ffdd8e;
  border: 1px solid #b49b5a;
  border-radius: 5px;
  padding: 6px 10px;
  font-size: 13px;
}
.talent-icon-button:hover .talent-hover-label,
.talent-icon-button:focus-visible .talent-hover-label {
  display: block;
}
.talent-detail {
  margin: 20px 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 12px;
  background: var(--panel);
}
.talent-detail-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.talent-detail-title img {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  border: 1px solid var(--gold);
}
.talent-detail-title h3 {
  margin: 0;
  font-size: 22px;
}
.talent-detail p {
  line-height: 1.8;
  margin: 10px 0;
}
.talent-detail h4 {
  margin: 12px 0 3px;
}
.talent-detail-actions {
  display: flex;
  gap: 10px;
}
.talent-detail-actions button {
  padding: 10px 18px;
}
.talent-unlock-state {
  color: var(--gold);
  font-weight: 700;
}
.talent-effect-pending {
  opacity: 0.75;
  font-size: 13px;
}
.talent-plan-tools {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  display: grid;
  gap: 12px;
}
.talent-plan-tools input {
  width: 100%;
  font-family: monospace;
  font-size: 13px;
}
.talent-plan-tools button {
  justify-self: start;
}
.talent-tree-tabs {
  display: none;
}
.talent-mode {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.talent-mode[aria-pressed="true"] {
  background: var(--gold);
  color: #15251f;
}
@media (max-width: 1050px) {
  .talent-class-bar {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .talent-class-bar button {
    flex-direction: column;
    gap: 5px;
  }
  #talent-trees {
    gap: 10px;
  }
  .talent-tree-heading {
    padding: 12px 8px;
  }
  .talent-tree-heading h3 {
    font-size: 17px;
  }
  #talent-trees .talent-icon-button {
    width: 46px;
    height: 46px;
    min-height: 46px;
  }
  .talent-tree-heading img {
    width: 28px;
    height: 28px;
  }
  .talent-tree-heading small {
    font-size: 10px;
  }
}
@media (max-width: 700px) {
  .talent-class-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .talent-class-bar button {
    flex-direction: row;
    font-size: 13px;
  }
  #talent-trees {
    display: block;
  }
  #talent-trees .mobile-inactive {
    display: none;
  }
  .talent-tree-tabs {
    display: flex;
    gap: 8px;
    margin-top: 20px;
  }
  .talent-tree-tabs button {
    flex: 1;
    border: 1px solid var(--line);
    background: var(--panel);
    color: inherit;
    border-radius: 7px;
    padding: 9px 3px;
  }
  .talent-tree-tabs button[aria-pressed="true"] {
    border-color: var(--gold);
    color: var(--gold);
    font-weight: 700;
  }
  #talent-trees .talent-icon-button {
    width: 56px;
    height: 56px;
    min-height: 56px;
  }
  .talent-tree-heading h3 {
    font-size: 22px;
  }
  .talent-tree-heading img {
    width: 36px;
    height: 36px;
  }
  .talent-build-summary {
    padding: 15px;
  }
  #talent-summary {
    font-size: 18px;
  }
  .talent-hover-label {
    font-size: 11px;
  }
  .talent-detail {
    padding: 16px;
  }
}
.talent-cell:hover,
.talent-cell:focus-within {
  z-index: 4;
}
#talent-trees .talent-tree {
  overflow: visible;
}
.talent-tree-heading {
  border-radius: 13px 13px 0 0;
}
.talent-canvas {
  border-radius: 0 0 13px 13px;
}
.talent-hover-label {
  width: 230px;
  white-space: normal;
  line-height: 1.65;
  text-align: left;
  pointer-events: none;
  box-shadow: 0 8px 24px #0009;
}
.talent-hover-label > strong,
.talent-hover-label > span {
  display: block;
}
.talent-hover-label > strong {
  font-size: 15px;
  margin-bottom: 6px;
}
.talent-hover-label > span {
  color: #e5e1cd;
  font-size: 12px;
  margin-top: 5px;
}
.talent-col-1 .talent-hover-label {
  left: 0;
  transform: none;
}
.talent-col-4 .talent-hover-label {
  left: auto;
  right: 0;
  transform: none;
}
@media (max-width: 700px) {
  .talent-hover-label {
    display: none !important;
  }
}
.research-notice summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--gold);
}
.research-notice[open] summary {
  margin-bottom: 15px;
}
.research-notice #research-meta {
  display: block;
  line-height: 1.7;
}
.loot-coming-page {
  padding: 70px 20px 90px;
}
.loot-coming-card {
  max-width: 820px;
  margin: auto;
  padding: clamp(28px, 6vw, 68px);
  text-align: center;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 16px 50px #0000000c;
}
.loot-coming-icon {
  display: inline-flex;
  width: 80px;
  height: 80px;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  font-size: 42px;
  color: var(--gold);
  margin-bottom: 20px;
}
.loot-coming-card h1 {
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.5;
  margin: 16px 0;
}
.loot-coming-card p {
  line-height: 1.9;
}
.loot-coming-status {
  display: inline-block;
  border: 1px solid var(--gold);
  border-radius: 30px;
  padding: 8px 24px;
  color: var(--gold);
  font-size: 23px;
  font-weight: 700;
}
.loot-coming-status span {
  font-size: 12px;
  vertical-align: middle;
  margin-right: 6px;
}
.loot-coming-card .research-tabs {
  justify-content: center;
  margin: 30px 0 0;
}
@media (max-width: 600px) {
  .loot-coming-page {
    padding: 35px 16px 80px;
  }
  .loot-coming-card .research-tabs {
    flex-direction: column;
  }
  .loot-coming-status {
    font-size: 21px;
  }
}
/* ツールチップを画面内に固定し、親パネルによる切り取りを防ぐ。 */
.talent-tooltip {
  position: fixed;
  z-index: 10000;
  box-sizing: border-box;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  overflow: auto;
  padding: 17px 19px;
  border: 1px solid #c2ac75;
  border-radius: 5px;
  background: linear-gradient(145deg, #101323f7, #080d16fb);
  box-shadow: 0 12px 35px #0009;
  color: #eee7d6;
  font-family: inherit;
  text-align: left;
  line-height: 1.7;
  scrollbar-width: thin;
  overscroll-behavior: contain;
}
.talent-tooltip[hidden] {
  display: none !important;
}
.talent-tooltip .talent-tooltip-title {
  font-size: 18px;
  line-height: 1.45;
  color: #fff4d4;
  font-weight: 700;
  margin: 0 0 6px;
}
.talent-tooltip p {
  margin: 3px 0;
  font-size: 13px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.talent-tooltip .talent-tooltip-meta {
  color: #c6c7d3;
}
.talent-tooltip .talent-tooltip-cost {
  color: #f2f1e8;
  margin: 9px 0;
}
.talent-tooltip h4 {
  color: #e3d9b8;
  font-size: 12px;
  margin: 12px 0 4px;
  font-weight: 500;
}
.talent-tooltip .talent-tooltip-effect {
  font-size: 14px;
  line-height: 1.75;
  color: #ffdb3b;
}
.talent-tooltip .talent-tooltip-ready {
  color: #89e875;
  margin-top: 12px;
  font-size: 12px;
}
.talent-tooltip .talent-tooltip-error {
  color: #ff9285;
}
.talent-tooltip-requirements {
  border-top: 1px solid #bbb18b40;
  margin-top: 12px;
  padding-top: 9px;
}
.talent-tooltip-requirements p {
  font-size: 12px;
}
.talent-tooltip:focus-visible {
  outline: 2px solid #f4d981;
}
@media (max-width: 700px) {
  .talent-tooltip {
    padding: 14px 16px;
  }
  .talent-tooltip .talent-tooltip-effect {
    font-size: 13px;
  }
}
.talent-tooltip .talent-tooltip-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.talent-tooltip .talent-tooltip-actions button {
  flex: 1;
  min-height: 44px;
  padding: 8px 5px;
  border: 1px solid #9f8b51;
  border-radius: 5px;
  background: #20251d;
  color: #ffe6a0;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.talent-tooltip .talent-tooltip-actions button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.talent-tooltip .talent-tooltip-actions button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.talent-race-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 18px;
}
.talent-race-summary img {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.talent-race-traits {
  margin: 20px 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: 12px;
  background: var(--panel);
  text-align: left;
}
.talent-race-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.talent-race-heading > img {
  width: 48px;
  height: 48px;
  border: 1px solid var(--gold);
  border-radius: 8px;
}
.talent-race-heading h3 {
  margin: 0 0 5px;
  font-size: 23px;
}
.talent-race-heading p {
  margin: 0;
  font-size: 13px;
  opacity: 0.8;
}
.talent-race-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.talent-race-ability {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  min-width: 0;
}
.talent-race-ability-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
}
.talent-race-ability-title img {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 5px;
  border: 1px solid var(--line);
}
.talent-race-ability-title h4 {
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
  color: var(--gold);
}
.talent-race-ability > small {
  font-size: 11px;
  opacity: 0.75;
}
.talent-race-ability > p {
  font-size: 13px;
  line-height: 1.85;
  margin: 10px 0 0;
  overflow-wrap: anywhere;
}
.talent-race-note {
  font-size: 12px;
  line-height: 1.8;
  opacity: 0.75;
  margin: 16px 0 0;
}
@media (max-width: 1050px) {
  .talent-race-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .talent-race-grid {
    grid-template-columns: 1fr;
  }
  .talent-race-traits {
    padding: 16px;
  }
  .talent-race-heading h3 {
    font-size: 20px;
  }
}

/* 共有と保存を冒険者向けの操作にまとめる。 */
.talent-plan-studio {
  padding: 26px;
}
.talent-studio-heading {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.talent-studio-heading h3 {
  margin: 8px 0;
  font-size: 25px;
}
.talent-local-badge {
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 7px 12px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.talent-studio-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 22px;
}
.talent-studio-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}
.talent-studio-card h4 {
  font-size: 22px;
  margin: 14px 0 22px;
}
.talent-plan-tools .talent-studio-card input,
.talent-plan-tools .talent-studio-card textarea {
  width: 100%;
  display: block;
  box-sizing: border-box;
  padding: 12px;
  margin: 8px 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
}
.talent-studio-card label {
  color: var(--muted);
  font-size: 13px;
}
.talent-plan-preview {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 18px;
  border-left: 3px solid var(--gold);
  background: var(--panel);
  font: inherit;
  line-height: 1.9;
  font-size: 14px;
  margin: 18px 0;
}
.talent-studio-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.talent-studio-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}
.talent-plan-feedback {
  color: var(--gold);
  font-size: 14px;
  line-height: 1.8;
}
.talent-saved-plans,
.talent-advanced {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.talent-saved-plans summary,
.talent-advanced summary,
.talent-legacy-saved summary {
  cursor: pointer;
  font-weight: 600;
}
#talent-saved-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
#talent-saved-list > p,
.talent-legacy-saved {
  grid-column: 1/-1;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}
.talent-saved-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  min-width: 0;
  background: var(--bg);
  overflow-wrap: anywhere;
}
.talent-saved-card p {
  font-size: 13px;
  color: var(--muted);
}
.talent-saved-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.talent-plan-tools .talent-saved-actions button {
  margin: 0;
}
.talent-legacy-saved > button {
  margin: 10px 10px 0 0;
}
.talent-plan-tools .talent-advanced input {
  display: block;
  width: 100%;
  min-width: 0;
  font:
    12px ui-monospace,
    monospace;
}
@media (max-width: 800px) {
  .talent-studio-grid {
    grid-template-columns: 1fr;
  }
  #talent-saved-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .talent-studio-heading {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }
}
@media (max-width: 500px) {
  .talent-plan-studio {
    padding: 18px;
  }
  .talent-studio-card {
    padding: 16px;
  }
  #talent-saved-list {
    grid-template-columns: 1fr;
  }
  .talent-studio-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

.talent-plan-tools .talent-studio-card input {
  font-family: inherit;
}
