:root {
  --surface: #fff;
  --soft: #f0f4f0;
  --soft-blue: #e7efff;
  --soft-mint: #e5f4ec;
  --soft-yellow: #fff7c2;
}
.site-header {
  gap: 17px;
}
.site-header > .icon-text {
  white-space: nowrap;
}
.site-header #theme-toggle {
  flex-shrink: 0;
}
.reply-layout > * {
  min-width: 0;
}
footer a {
  font-size: 12px;
  padding: 8px 0;
}
.hero {
  height: 246px;
}
.hero h1 {
  font-size: 50px;
  max-width: 530px;
  margin: 15px 0 12px;
  line-height: 1.25;
}
.hero h1 span {
  color: var(--blue);
  margin-left: 5px;
}
.hero-copy {
  padding-top: 30px;
  z-index: 1;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: max(46%, 370px);
  background: rgba(255, 255, 255, 0.9);
  pointer-events: none;
}
html[data-theme="dark"] .hero::after {
  background: rgba(23, 30, 27, 0.92);
}
.hero-copy > p.hero-question {
  font-size: 23px;
  font-weight: 650;
}
.hero-copy > p.hero-caption {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
  font-weight: 400;
}
.hero > img {
  object-position: center 42%;
}
.quick-entries {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  gap: 15px;
}
.quick-entries > a,
.quick-entries > button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 0;
  border-right: 1px solid var(--line);
}
.quick-entries > :last-child {
  border-right: 0;
}
.quick-entries svg {
  color: var(--blue);
}
.quick-entries > a:hover,
.quick-entries > button:hover {
  color: var(--blue);
}
.square-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 46px;
  padding: 32px 0 44px;
}
.square-main {
  min-width: 0;
}
.composer {
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  padding: 24px;
  background: var(--surface);
  box-shadow: 4px 4px #d5dece;
}
.composer .section-head {
  margin-bottom: 17px;
}
.composer h2 {
  font-size: 22px;
}
.composer .section-head > span {
  font-size: 11px;
  max-width: 165px;
  text-align: right;
}
.composer textarea {
  background: var(--soft);
  border: 1px solid var(--line);
  font-size: 16px;
  min-height: 111px;
}
.composer-options {
  display: flex;
  align-items: end;
  gap: 17px;
  margin-top: 16px;
}
.composer-options label {
  width: 160px;
  font-size: 11px;
}
.composer-options select {
  font-size: 13px;
  min-height: 39px;
  padding: 8px;
}
.composer-options > span {
  font: 11px monospace;
  color: var(--muted);
  margin-left: auto;
  white-space: nowrap;
  padding-bottom: 9px;
}
.composer .check {
  display: block;
  font-size: 11px;
  line-height: 2;
}
.composer .check > input {
  vertical-align: middle;
  margin: 0 7px 0 0;
}
.composer .check > a {
  color: var(--blue);
  text-decoration: underline;
}
.composer-bottom {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 17px;
}
.composer-bottom > span {
  font-size: 11px;
  color: var(--muted);
}
.composer .notice {
  margin: 18px 0 0;
}
.feed-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 35px;
}
.feed-heading h2 {
  font-size: 26px;
}
.feed-heading .kicker {
  margin-bottom: 4px;
}
.feed-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 19px;
  gap: 15px;
}
.feed-controls select {
  width: 130px;
  min-height: 39px;
  padding: 7px 10px;
  font-size: 12px;
}
.feed-tabs {
  display: flex;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}
.feed-tabs button {
  font-size: 14px;
  padding: 9px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  color: var(--muted);
}
.feed-tabs button.selected {
  border-bottom-color: var(--blue);
  color: var(--blue);
  font-weight: 700;
}
.tag-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 17px;
}
.tag-filters button {
  font-size: 12px;
  padding: 5px 0;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}
.tag-filters button.selected {
  color: var(--ink);
  font-weight: 700;
  border-color: var(--yellow);
}
#community-status {
  font-size: 11px;
  margin: 8px 0 17px;
}
.post {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 22px;
  background: var(--surface);
  margin-bottom: 15px;
}
.post-head {
  display: flex;
  align-items: center;
  gap: 11px;
}
.post-avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--soft-mint);
  color: #345546;
  font: 700 14px monospace;
}
.post-meta {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 3px 12px;
  align-items: baseline;
}
.post-meta b {
  font-size: 12px;
}
.post-meta time {
  font-size: 10px;
  color: var(--muted);
}
.post-head > .emotion {
  font-size: 11px;
  background: var(--soft);
  padding: 3px 8px;
  border-radius: 3px;
  color: var(--muted);
}
.post-body {
  font-size: 15px;
  line-height: 1.95;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 18px 0;
}
.post-title {
  display: block;
  font-size: 21px;
  margin: 17px 0 8px;
  font-weight: 700;
  text-align: left;
}
.post-tag {
  color: var(--blue);
  font-size: 12px;
}
.post-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 15px;
  margin-top: 17px;
}
.me-too {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 7px 13px;
  font-size: 12px;
  min-width: 92px;
  justify-content: center;
}
.me-too.selected {
  background: var(--yellow);
  border-color: var(--ink);
  color: #192321;
}
.me-too.selected svg {
  fill: #192321;
}
.me-too:active {
  transform: scale(0.94);
}
.post-footer > span {
  font-size: 11px;
  color: var(--muted);
}
.post-footer > .icon-button {
  margin-left: auto;
  width: 33px;
  height: 33px;
}
.post-footer > .icon-button + button {
  margin-left: 0;
}
.editor-heading {
  margin: 30px 0 17px;
}
.editor-heading h3 {
  font-size: 18px;
}
.editor-heading span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 7px;
}
.editor-quote {
  background: var(--soft-blue);
  padding: 21px 24px;
  border-left: 3px solid #99b0e7;
  margin: 14px 0;
}
.editor-quote p {
  font-size: 16px;
  line-height: 1.9;
}
.editor-quote small {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-top: 12px;
}
.feed-empty {
  border-block: 1px dashed var(--line);
  padding: 26px 8px;
}
.feed-empty h3 {
  font-size: 18px;
  margin-bottom: 9px;
}
.feed-empty p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.9;
}
.square-aside {
  min-width: 0;
}
.small-action {
  background: var(--soft-yellow);
  padding: 24px;
  border-left: 3px solid var(--yellow);
}
.small-action h2 {
  font-size: 22px;
}
.small-action h3 {
  font-size: 19px;
  line-height: 1.6;
  margin: 23px 0 13px;
}
.small-action p {
  font-size: 13px;
  line-height: 1.95;
  color: var(--muted);
}
.small-action .actions {
  gap: 9px;
}
.small-action .button {
  font-size: 12px;
  padding: 9px 12px;
}
.side-topics {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.side-topics h3 {
  font-size: 18px;
  margin-bottom: 17px;
}
#home-rooms > a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 0;
  font-size: 13px;
}
#home-rooms > a > svg {
  color: var(--blue);
}
.side-agreement {
  padding: 27px 0;
  border-bottom: 1px solid var(--line);
}
.side-agreement > svg {
  width: 32px;
  height: 32px;
  margin-bottom: 15px;
}
.side-agreement h3 {
  font-size: 19px;
}
.side-agreement p {
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
  margin: 13px 0;
}
.side-agreement > .text-link {
  display: flex;
  justify-content: flex-start;
  font-size: 12px;
  padding: 6px 0;
}
.insight-entry {
  display: flex;
  gap: 12px;
  font-size: 13px;
  align-items: center;
  padding: 24px 0;
  line-height: 1.8;
}
.insight-entry > svg:first-child {
  width: 28px;
  height: 28px;
  color: var(--blue);
}
.insight-entry small {
  font-size: 10px;
  color: var(--muted);
}
.insight-entry > svg:last-child {
  margin-left: auto;
  width: 16px;
  height: 16px;
}
.story-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.story-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding: 24px 0 10px;
}
.story-filters label {
  font-size: 12px;
}
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 23px;
  padding: 14px 0;
}
.story-grid > .feed-empty {
  grid-column: 1/-1;
}
.story-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 23px;
  display: flex;
  flex-direction: column;
  background: var(--surface);
}
.story-card .story-stage {
  font-size: 12px;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.story-card .story-stage small {
  font-size: 10px;
  color: var(--muted);
}
.story-card h2 {
  font-size: 23px;
  line-height: 1.6;
  margin: 16px 0;
}
.story-card p {
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
  flex: 1;
}
.story-card .story-details {
  border-top: 1px solid var(--line);
  padding-top: 15px;
  margin-top: 20px;
  font-size: 11px;
  color: var(--muted);
  display: flex;
  gap: 11px;
  flex-wrap: wrap;
}
.story-card .text-link {
  justify-content: flex-start;
  margin-top: 9px;
}
.story-article {
  font-size: 15px;
  line-height: 2;
  white-space: pre-wrap;
  margin: 23px 0;
  overflow-wrap: anywhere;
}
.source-label {
  background: var(--soft-yellow);
  padding: 12px 15px;
  font-size: 12px;
  line-height: 1.8;
}
.retained-tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--line);
  padding: 20px 0;
  gap: 25px;
}
.retained-tools > a {
  display: grid;
  grid-template-columns: 32px 1fr 20px;
  gap: 4px 10px;
  align-items: center;
}
.retained-tools > a > svg:first-child {
  grid-row: 1/3;
  width: 27px;
  height: 27px;
  color: var(--blue);
}
.retained-tools > a > b {
  font-size: 16px;
}
.retained-tools > a > span {
  grid-column: 2;
  font-size: 11px;
  color: var(--muted);
}
.retained-tools > a > svg:last-child {
  grid-column: 3;
  grid-row: 1/3;
  width: 16px;
  height: 16px;
}
.tool-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  gap: 26px;
  margin: 28px 0;
}
.tool-tabs button {
  font-size: 15px;
  color: var(--muted);
  padding: 12px 0;
  border-bottom: 3px solid transparent;
}
.tool-tabs button.selected {
  color: var(--blue);
  border-color: var(--blue);
  font-weight: 600;
}
.tool-surface {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 44px;
  padding: 4px 0 28px;
}
.tool-surface h2 {
  font-size: 23px;
  margin-bottom: 24px;
}
.tool-surface form {
  min-width: 0;
}
.tool-surface form > .button {
  margin-top: 20px;
}
.letter-tones {
  display: flex;
  gap: 25px;
}
.letter-tones label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.letter-tones input[type="radio"] {
  width: 16px;
  height: 16px;
  min-height: 16px;
  padding: 0;
  margin: 0;
  accent-color: var(--blue);
}
.letter-result > label {
  font-size: 13px;
  margin-bottom: 12px;
}
.letter-result textarea {
  background: var(--soft-yellow);
  padding: 24px;
  font-size: 15px;
  line-height: 1.9;
  border: 1px solid var(--ink);
  min-height: 410px;
}
.letter-result .actions {
  gap: 15px;
}
.letter-result .icon-text {
  font-size: 12px;
}
.value-result {
  padding: 30px 0 0 32px;
  border-left: 1px solid var(--line);
}
.value-result > svg {
  width: 47px;
  height: 47px;
  color: var(--blue);
  margin-bottom: 26px;
}
.value-result > p {
  color: var(--muted);
  font-size: 13px;
}
.value-result h2 {
  font-size: 26px;
  line-height: 1.6;
}
.value-table {
  font-size: 13px;
  margin-top: 21px;
}
.value-table th:not(:first-child),
.value-table td:not(:first-child) {
  text-align: right;
}
.value-table th {
  text-align: left;
}
.value-table tr:last-child td {
  color: var(--blue);
  font-weight: 700;
}
.value-result .notice {
  margin-top: 24px;
}
#job-b {
  padding-top: 25px;
  margin-top: 22px;
  border-top: 1px solid var(--line);
}
#job-b h3 {
  font-size: 19px;
  margin-bottom: 18px;
}
.handover-item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.handover-item input {
  accent-color: var(--blue);
  width: 18px;
  height: 18px;
  margin: 4px 0 0;
}
.handover-item b {
  display: block;
  font-size: 16px;
}
.handover-item small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}
.action-detail {
  padding: 28px 0 42px;
  display: grid;
  grid-template-columns: 230px minmax(0, 660px);
  gap: 46px;
  align-items: center;
}
.action-symbol {
  background: var(--soft-mint);
  width: 220px;
  height: 220px;
  display: grid;
  place-items: center;
  transform: rotate(-3deg);
  border: 1px solid var(--ink);
  box-shadow: 5px 5px var(--ink);
  border-radius: 6px;
}
.action-symbol svg {
  height: 90px;
  width: 90px;
  color: #2a5c48;
}
.action-detail h2 {
  font-size: 30px;
  line-height: 1.6;
}
.action-detail p {
  font-size: 15px;
  line-height: 2;
  color: var(--muted);
  margin-top: 18px;
}
.action-history-row {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}
.action-history-row span {
  font: 12px monospace;
  color: var(--muted);
}
.action-history-row b {
  font-size: 15px;
}
.action-history-row svg {
  color: var(--blue);
  margin-left: auto;
}
.room-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-bottom: 36px;
}
.room {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 6px;
  padding: 24px;
}
.room.active {
  border-color: var(--ink);
  background: var(--soft-yellow);
}
.room > svg {
  width: 31px;
  height: 31px;
  color: var(--blue);
  margin-bottom: 19px;
}
.room h2 {
  font-size: 23px;
  margin-bottom: 12px;
}
.room p {
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
  min-height: 75px;
}
.room .actions {
  justify-content: space-between;
}
.room .icon-button.selected {
  background: var(--yellow);
  color: #192321;
}
.companion-band {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  display: flex;
  align-items: center;
  gap: 25px;
}
.companion-band > svg {
  width: 40px;
  height: 40px;
}
.companion-band h3 {
  font-size: 20px;
}
.companion-band p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
}
.companion-band > .text-link {
  margin-left: auto;
  white-space: nowrap;
}
.insights-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 60px;
}
.insights-layout form {
  border-right: 1px solid var(--line);
  padding-right: 32px;
}
.insights-layout form > h2 {
  font-size: 23px;
}
.insights-layout label {
  margin-top: 20px;
}
.mood-number {
  display: flex;
  align-items: baseline;
  gap: 9px;
}
.mood-number output {
  font:
    800 60px ui-monospace,
    monospace;
  color: var(--blue);
}
.mood-number span {
  font-size: 20px;
  color: var(--muted);
}
input[type="range"] {
  accent-color: var(--blue);
}
.range-labels {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}
.insights-layout .button {
  margin-top: 20px;
}
.insights-layout form > .text-link {
  display: flex;
  justify-content: flex-start;
  margin-top: 10px;
}
.insight-summary {
  padding: 8px 0 28px;
  border-bottom: 1px solid var(--line);
}
.insight-summary strong {
  font: 700 42px monospace;
  display: block;
  color: var(--blue);
  margin: 14px 0;
}
.insight-summary h2 {
  font-size: 24px;
}
.insight-summary p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.9;
}
.insight-section {
  padding: 27px 0;
  border-bottom: 1px solid var(--line);
}
.insight-section h3 {
  font-size: 20px;
  margin-bottom: 18px;
}
.insight-section p {
  color: var(--muted);
  font-size: 13px;
}
.heat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  gap: 18px;
  font-size: 13px;
}
.heat-row b {
  color: var(--blue);
}
.me-toolbar {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 5px 0 30px;
}
.bookmark-row {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.bookmark-row > a,
.bookmark-row > button:first-child {
  flex: 1;
  text-align: left;
  font-size: 15px;
}
.small-badges {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.small-badge {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  min-width: 180px;
  background: var(--soft);
}
.small-badge.unlocked {
  background: var(--soft-yellow);
}
.small-badge svg {
  display: block;
  margin-bottom: 12px;
  width: 30px;
  height: 30px;
}
.small-badge b {
  display: block;
  font-size: 15px;
}
.small-badge small {
  font-size: 11px;
  color: var(--muted);
}
#community-dialog {
  width: min(760px, calc(100% - 36px));
}
#community-dialog-body {
  min-width: 0;
}
#community-dialog-body > p {
  font-size: 14px;
  line-height: 1.95;
  margin: 13px 0;
  color: var(--muted);
}
#community-dialog-body form > label {
  margin: 18px 0;
}
#community-dialog-body .actions {
  margin-top: 22px;
}
.rules-list {
  font-size: 14px;
  line-height: 2;
  padding-left: 20px;
}
.rules-list li {
  padding: 5px 0;
}
.support-link {
  display: flex;
  gap: 18px;
  align-items: center;
  background: var(--soft-mint);
  padding: 20px;
  border-radius: 5px;
  margin: 20px 0;
}
.support-link svg {
  width: 30px;
  height: 30px;
  color: var(--blue);
}
.support-link strong {
  font-size: 28px;
}
.support-link small {
  font-size: 12px;
  display: block;
  color: var(--muted);
}
#community-poster {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  border: 1px solid var(--line);
  margin: 17px 0;
}
.room-checks {
  display: grid;
  gap: 15px;
  margin: 20px 0;
}
.room-checks label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.room-checks input {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
}
.report-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.report-menu button {
  padding: 13px;
  text-align: left;
  background: var(--soft);
  border-radius: 4px;
}
.report-menu button:hover {
  background: var(--soft-blue);
}
.status-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
  background: var(--soft);
  padding: 13px 16px;
  margin: 16px 0;
}
.action-complete {
  color: var(--blue);
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.deleted-message {
  font-size: 13px;
  color: var(--muted);
}
.form-muted {
  font-size: 11px;
  color: var(--muted);
}
#story-form textarea {
  min-height: 230px;
}
.community-loading {
  font-size: 13px;
  color: var(--muted);
  padding: 35px 0;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e6ece7;
  --muted: #a4b1a9;
  --yellow: #dfca57;
  --blue: #9bb6ff;
  --mint: #283f35;
  --paper: #171c1b;
  --line: #35423b;
  --surface: #202825;
  --soft: #27322c;
  --soft-blue: #293648;
  --soft-yellow: #39382b;
  --soft-mint: #263e33;
  --red: #ffa099;
}
html[data-theme="dark"] .site-header,
html[data-theme="dark"] footer,
html[data-theme="dark"] .daily-strip,
html[data-theme="dark"] dialog {
  background: var(--surface);
}
html[data-theme="dark"] .edition {
  color: #192321;
}
html[data-theme="dark"] .hero {
  background: #18211c;
}
html[data-theme="dark"] .hero > img {
  opacity: 0.3;
}
html[data-theme="dark"] .hero-copy > p {
  color: var(--ink);
}
html[data-theme="dark"] .hero:before {
  background: #18211c;
}
html[data-theme="dark"] .composer {
  box-shadow: 4px 4px #334036;
}
html[data-theme="dark"]
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] .unit {
  background: var(--surface);
  border-color: #617168;
  color: var(--ink);
}
html[data-theme="dark"] .unit input {
  background: none !important;
}
html[data-theme="dark"] .button {
  background: var(--surface);
  color: var(--ink);
}
html[data-theme="dark"] .button.blue {
  background: #315ade;
  border-color: #315ade;
  color: white;
}
html[data-theme="dark"] .button.yellow {
  background: var(--yellow);
  color: #192321;
}
html[data-theme="dark"] .feature {
  color: #e6ece7;
}
html[data-theme="dark"] .yellow-tint {
  background: #3e3d28;
}
html[data-theme="dark"] .blue-tint {
  background: #28384a;
}
html[data-theme="dark"] .mint-tint {
  background: #293f33;
}
html[data-theme="dark"] .scenario-tabs button,
html[data-theme="dark"] .energy-tabs button,
html[data-theme="dark"] .tone-tabs button {
  background: var(--surface);
}
html[data-theme="dark"] .scenario-tabs button.selected,
html[data-theme="dark"] .energy-tabs button.selected,
html[data-theme="dark"] .tone-tabs button.selected,
html[data-theme="dark"] .scene-list button.selected {
  background: var(--yellow);
  color: #192321;
}
html[data-theme="dark"] .notice {
  background: var(--soft-blue);
  color: #c9dcf5;
}
html[data-theme="dark"] .budget-aside {
  background: var(--soft-yellow);
}
html[data-theme="dark"] .budget-aside p {
  color: var(--muted);
}
html[data-theme="dark"] .ticket-view,
html[data-theme="dark"] .box-art,
html[data-theme="dark"] .grade {
  background: var(--soft-yellow);
}
html[data-theme="dark"] .activity-cover {
  background: var(--soft-blue);
}
html[data-theme="dark"] .badge {
  background: var(--soft);
}
html[data-theme="dark"] .badge.unlocked {
  background: var(--soft-yellow);
}
html[data-theme="dark"] .scene-list button:hover {
  background: var(--soft-yellow);
}
html[data-theme="dark"] .seasonal {
  background: var(--soft-yellow);
}
html[data-theme="dark"] .error {
  background: #3e2929;
  color: var(--red);
}
html[data-theme="dark"] .mint-note {
  background: var(--soft-mint);
}
html[data-theme="dark"] .mint-note p,
html[data-theme="dark"] .mint-note h2 {
  color: var(--ink);
}
html[data-theme="dark"] .post-avatar,
html[data-theme="dark"] .action-symbol svg {
  color: #aedbc5;
}
html[data-theme="dark"] .brand > svg,
html[data-theme="dark"] .round-control {
  color: #192321;
}
html[data-theme="dark"] .icon-button:hover {
  background: var(--soft);
}
html[data-theme="dark"] .runway-chart span {
  background: var(--soft);
}
html[data-theme="dark"] .runway-chart span.filled {
  background: var(--blue);
}
@media (min-width: 1700px) {
  .hero {
    height: 265px;
  }
  .hero-copy {
    padding-top: 38px;
  }
  .hero h1 {
    font-size: 54px;
  }
}
@media (max-width: 1150px) {
  .site-header nav {
    gap: 14px;
  }
  .site-header {
    gap: 11px;
  }
  .square-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 30px;
  }
  .small-action {
    padding: 21px;
  }
  .composer {
    padding: 21px;
  }
  .story-card h2 {
    font-size: 21px;
  }
  .story-grid {
    gap: 17px;
  }
  .tool-surface {
    gap: 28px;
  }
  .insights-layout {
    grid-template-columns: 320px 1fr;
    gap: 35px;
  }
  .hero h1 {
    font-size: 47px;
  }
  .room h2 {
    font-size: 20px;
  }
  .room-grid {
    gap: 18px;
  }
  .room {
    padding: 20px;
  }
  .retained-tools {
    gap: 18px;
  }
  .retained-tools > a > b {
    font-size: 14px;
  }
}
@media (max-width: 880px) {
  .site-header > .icon-text {
    margin-left: 0;
  }
  .site-header #theme-toggle {
    margin-left: auto;
  }
  .square-layout {
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 23px;
  }
  .composer .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
  .composer .section-head > span {
    max-width: none;
    text-align: left;
  }
  .composer h2 {
    font-size: 20px;
  }
  .composer-options {
    gap: 10px;
  }
  .composer-options label {
    width: 130px;
  }
  .composer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .small-action {
    padding: 19px;
  }
  .small-action h2 {
    font-size: 20px;
  }
  .small-action h3 {
    font-size: 17px;
  }
  .square-aside .small-action .actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .story-filters {
    gap: 15px;
    grid-template-columns: 1fr 1fr;
  }
  .tool-surface {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }
  .tool-surface h2 {
    font-size: 20px;
  }
  .value-result {
    padding-left: 22px;
  }
  .retained-tools {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .retained-tools > a > svg:first-child {
    width: 24px;
    height: 24px;
  }
  .retained-tools > a > b {
    font-size: 16px;
  }
  .room-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .room {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 10px 14px;
  }
  .room > svg {
    grid-row: 1/3;
    margin: 0;
  }
  .room h2 {
    margin: 0;
  }
  .room p {
    grid-column: 2;
    min-height: 0;
  }
  .room .actions {
    grid-column: 2;
    justify-content: flex-start;
    margin-top: 0;
    gap: 17px;
  }
  .action-detail {
    grid-template-columns: 180px 1fr;
    gap: 30px;
  }
  .action-symbol {
    width: 175px;
    height: 175px;
  }
  .action-detail h2 {
    font-size: 26px;
  }
  .companion-band {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .companion-band > .text-link {
    margin-left: 65px;
  }
  .insights-layout {
    grid-template-columns: 280px 1fr;
    gap: 24px;
  }
  .insights-layout form {
    padding-right: 24px;
  }
  .insight-summary h2 {
    font-size: 22px;
  }
  .hero h1 {
    font-size: 45px;
  }
}
@media (max-width: 650px) {
  :is(#stories, #tools, #rooms, #actions, #insights, #me) .page-title h1 span {
    display: block;
  }
  .hero {
    height: 224px;
  }
  .hero-copy {
    padding-top: 26px;
  }
  .hero h1 {
    font-size: 38px;
    max-width: 390px;
    line-height: 1.4;
    margin: 8px 0 7px;
  }
  .hero h1 span {
    margin-left: 4px;
  }
  .hero-copy > p.hero-question {
    font-size: 18px;
  }
  .hero-copy > p.hero-caption {
    font-size: 12px;
  }
  .hero > img {
    object-position: 45% center;
    opacity: 0.65;
  }
  .hero::after {
    width: 100%;
    background: rgba(255, 255, 255, 0.56);
  }
  html[data-theme="dark"] .hero::after {
    background: rgba(23, 30, 27, 0.55);
  }
  .quick-entries {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px 18px;
    padding: 18px 0;
  }
  .quick-entries > a,
  .quick-entries > button {
    font-size: 12px;
    justify-content: flex-start;
    padding: 7px 8px;
    border-right: 0;
  }
  .quick-entries svg {
    width: 18px;
    height: 18px;
  }
  .square-layout {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 24px 0 30px;
  }
  .composer {
    padding: 20px 17px;
    box-shadow: 3px 3px #d5dece;
  }
  .composer .section-head {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }
  .composer h2 {
    font-size: 20px;
  }
  .composer .section-head > span {
    max-width: 100px;
    font-size: 10px;
    text-align: right;
  }
  .composer-options label {
    width: 132px;
    font-size: 10px;
  }
  .composer-options select {
    font-size: 12px !important;
    min-height: 38px;
  }
  .composer-options > span {
    font-size: 10px;
  }
  .composer textarea {
    font-size: 15px !important;
    padding: 12px;
    min-height: 116px;
  }
  .composer .check {
    font-size: 10px;
  }
  .composer-bottom {
    flex-direction: row;
    align-items: center;
    gap: 13px;
  }
  .composer-bottom > span {
    font-size: 10px;
    max-width: 142px;
  }
  .composer-bottom .button {
    min-height: 42px;
    font-size: 12px;
  }
  .square-aside {
    display: grid;
    grid-template-columns: 1fr;
  }
  .small-action {
    padding: 23px;
  }
  .small-action h2 {
    font-size: 22px;
  }
  .small-action h3 {
    font-size: 20px;
    margin-top: 18px;
  }
  .square-aside .small-action .actions {
    flex-direction: row;
    align-items: center;
  }
  .side-topics {
    display: none;
  }
  .side-agreement {
    padding: 24px 0;
  }
  .side-agreement > svg {
    float: right;
  }
  .side-agreement p {
    max-width: 290px;
  }
  .side-agreement > .text-link {
    display: inline-flex;
    margin-right: 15px;
  }
  .insight-entry {
    padding-bottom: 5px;
  }
  .feed-heading {
    margin-top: 31px;
  }
  .feed-heading h2 {
    font-size: 25px;
  }
  .feed-controls {
    gap: 11px;
  }
  .feed-tabs {
    gap: 19px;
  }
  .feed-tabs button {
    font-size: 13px;
  }
  .feed-controls select {
    font-size: 12px !important;
    width: 119px;
  }
  .tag-filters {
    gap: 5px 12px;
  }
  .tag-filters button {
    font-size: 11px;
  }
  .post {
    padding: 19px 17px;
  }
  .post-meta {
    display: block;
  }
  .post-meta time {
    display: block;
    margin-top: 3px;
  }
  .post-meta b {
    font-size: 11px;
  }
  .post-body {
    font-size: 15px;
    margin: 15px 0;
  }
  .post-footer {
    gap: 9px;
    flex-wrap: wrap;
  }
  .post-footer > span {
    font-size: 10px;
  }
  .me-too {
    min-width: 80px;
    font-size: 11px;
    padding: 6px 10px;
  }
  .post-footer .icon-button svg {
    width: 17px;
    height: 17px;
  }
  .editor-quote {
    padding: 19px 18px;
  }
  .editor-quote p {
    font-size: 15px;
  }
  .editor-heading span {
    font-size: 10px;
  }
  .story-toolbar {
    align-items: flex-start;
    gap: 15px;
    flex-direction: column;
  }
  .story-toolbar .button {
    font-size: 12px;
    min-height: 41px;
  }
  .story-filters {
    padding-top: 23px;
    gap: 14px;
  }
  .story-filters label {
    font-size: 11px;
  }
  .story-filters select,
  .story-filters input {
    font-size: 13px !important;
  }
  .story-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .story-card h2 {
    font-size: 23px;
  }
  .story-card {
    padding: 23px;
  }
  .tool-tabs {
    gap: 20px;
    margin: 24px 0;
    overflow-x: auto;
  }
  .tool-tabs button {
    font-size: 13px;
    white-space: nowrap;
  }
  .tool-surface {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .tool-surface h2 {
    font-size: 23px;
  }
  .tool-surface .form-grid {
    gap: 18px 14px;
  }
  .letter-result textarea {
    min-height: 390px;
    font-size: 15px !important;
    padding: 20px;
  }
  .letter-result .actions {
    gap: 12px;
  }
  .value-result {
    border-left: 0;
    padding: 25px 0 0;
    border-top: 1px solid var(--line);
  }
  .value-result h2 {
    font-size: 23px;
  }
  .action-detail {
    grid-template-columns: 1fr;
    gap: 35px;
    padding-top: 14px;
  }
  .action-symbol {
    width: 150px;
    height: 150px;
    margin: 0 auto;
  }
  .action-symbol svg {
    height: 65px;
    width: 65px;
  }
  .action-detail h2 {
    font-size: 25px;
  }
  .action-detail p {
    font-size: 14px;
    margin-top: 14px;
  }
  .action-history-row {
    gap: 15px;
  }
  .action-history-row b {
    font-size: 13px;
  }
  .action-history-row span {
    font-size: 10px;
  }
  .room p {
    font-size: 12px;
  }
  .room h2 {
    font-size: 21px;
  }
  .companion-band {
    gap: 18px;
  }
  .companion-band > svg {
    width: 31px;
    height: 31px;
  }
  .companion-band h3 {
    font-size: 18px;
  }
  .companion-band p {
    font-size: 12px;
  }
  .companion-band > .text-link {
    margin-left: 0;
  }
  .insights-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .insights-layout form {
    padding-right: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: 22px;
  }
  .insights-layout label {
    margin-top: 17px;
  }
  .insights-layout .check {
    font-size: 11px;
  }
  .insight-summary strong {
    font-size: 40px;
  }
  .me-toolbar {
    gap: 13px 19px;
  }
  .me-toolbar .button {
    font-size: 12px;
  }
  .me-toolbar .icon-text {
    font-size: 12px;
  }
  .small-badge {
    min-width: 0;
    flex: 1;
    padding: 17px 12px;
  }
  .small-badge b {
    font-size: 13px;
  }
  .small-badge small {
    font-size: 10px;
  }
  .story-article {
    font-size: 14px;
  }
  #community-dialog {
    padding: 21px;
  }
  .source-label {
    font-size: 11px;
  }
  .support-link {
    padding: 17px;
    gap: 15px;
  }
  .support-link strong {
    font-size: 25px;
  }
  .rules-list {
    font-size: 13px;
  }
  .form-muted {
    font-size: 10px;
  }
  .post-title {
    font-size: 20px;
  }
  .editor-heading h3 {
    font-size: 18px;
  }
  .quick-entries {
    margin-top: 0;
  }
  .square-main {
    min-width: 0;
  }
}
@media (max-width: 360px) {
  .hero h1 {
    font-size: 33px;
  }
  .hero-copy > p.hero-question {
    font-size: 17px;
  }
  .composer .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .composer .section-head > span {
    max-width: none;
    text-align: left;
  }
  .composer-options {
    flex-wrap: wrap;
  }
  .composer-options label {
    width: calc(50% - 5px);
  }
  .composer-options > span {
    width: 100%;
    text-align: right;
  }
  .composer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .composer-bottom > span {
    max-width: none;
  }
  .tool-tabs {
    gap: 16px;
  }
  .tool-tabs button {
    font-size: 12px;
  }
  .post-footer > span {
    width: 100%;
    order: 3;
  }
  .site-header nav {
    gap: 20px;
  }
  .me-toolbar .button {
    width: 100%;
  }
  .retained-tools > a > b {
    font-size: 15px;
  }
}
