:root {
  color-scheme: light;
  --bg: #f7f2ee;
  --surface: #fffaf6;
  --surface-strong: #ffffff;
  --text: #2d2522;
  --muted: #7b6f69;
  --line: rgba(70, 54, 47, 0.12);
  --accent: #b96f78;
  --accent-2: #809b83;
  --gold: #c99f53;
  --shadow: 0 18px 60px rgba(83, 53, 44, 0.18);
  --soft-shadow: 0 12px 34px rgba(83, 53, 44, 0.11);
}

[data-theme="masculine"] {
  color-scheme: dark;
  --bg: #121614;
  --surface: #1b201d;
  --surface-strong: #232925;
  --text: #f4efe7;
  --muted: #a59f94;
  --line: rgba(244, 239, 231, 0.12);
  --accent: #5f7c8d;
  --accent-2: #516b55;
  --gold: #b58a45;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.34);
  --soft-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--accent) 18%, transparent), transparent 34rem),
    linear-gradient(135deg, var(--bg), color-mix(in srgb, var(--bg) 90%, var(--accent-2)));
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button {
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(230px, 290px) minmax(380px, 440px) minmax(290px, 380px);
  gap: 34px;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: var(--text);
}

.sidebar,
.details-panel {
  min-height: 680px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 28px;
}

.sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.sidebar-copy {
  max-width: 14rem;
  color: var(--muted);
  line-height: 1.5;
}

.brand-intro {
  display: grid;
  gap: 16px;
}

.brand-lockup,
.topbar-title {
  display: flex;
  align-items: center;
}

.brand-lockup {
  gap: 16px;
}

.topbar-title {
  gap: 12px;
  min-width: 0;
}

.logo-mark,
.topbar-logo {
  display: block;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  box-shadow: var(--soft-shadow);
}

.logo-mark {
  width: 64px;
  height: 64px;
  border-radius: 18px;
}

.topbar-logo {
  width: 42px;
  height: 42px;
  border-radius: 13px;
}

.identity-card {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-strong) 72%, transparent);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--soft-shadow);
}

.identity-card strong {
  display: block;
  margin-top: 8px;
  line-height: 1.3;
}

.how-card {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-strong) 72%, transparent);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--soft-shadow);
}

.how-card ol {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--text);
}

.how-card li {
  margin: 7px 0;
  color: var(--muted);
  line-height: 1.28;
}

.eyebrow,
.mini-label,
.caption {
  margin: 0;
  color: var(--muted);
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 6px 0 0;
  font-size: 2.25rem;
  line-height: 1;
}

.theme-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface-strong) 58%, transparent);
}

.theme-card span,
.field span,
.journal-field span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.theme-toggle,
.side-nav {
  display: grid;
  gap: 10px;
}

.theme-option,
.nav-item,
.bottom-item,
.text-button,
.icon-button,
.primary-button,
.secondary-button,
.quick-menu button {
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--surface-strong);
  border-radius: 10px;
  min-height: 42px;
}

select {
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--text);
  border-radius: 12px;
  min-height: 44px;
  padding: 0 12px;
  outline: none;
}

.theme-option.active,
.nav-item.active,
.bottom-item.active {
  background: var(--text);
  color: var(--surface);
}

.nav-item {
  text-align: left;
  padding: 0 16px;
}

.phone-frame {
  border-radius: 42px;
  padding: 13px;
  background: #0d0d0d;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

.phone-status {
  height: 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 22px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}

.mobile-app {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 720px;
  overflow: hidden;
  border-radius: 32px;
  background: var(--bg);
  padding: 0;
  scrollbar-width: none;
}

.mobile-app::-webkit-scrollbar {
  display: none;
}

.app-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 24px 20px 22px;
  scrollbar-width: none;
}

.app-content::-webkit-scrollbar {
  display: none;
}

.topbar,
.section-heading,
.bottom-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar {
  padding: 2px 2px 4px;
}

.mini-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.topbar h2,
.section-heading h3,
.details-panel h2 {
  margin: 4px 0 0;
}

.icon-button {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  padding: 0;
}

.icon-button span,
.icon-button span::before,
.icon-button span::after {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: currentColor;
}

.icon-button span {
  position: relative;
}

.icon-button span::before,
.icon-button span::after {
  content: "";
  position: absolute;
  left: 0;
}

.icon-button span::before {
  top: -9px;
}

.icon-button span::after {
  top: 9px;
}

.quick-menu {
  position: absolute;
  inset: 0;
  z-index: 18;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(10, 10, 10, 0.5);
}

.quick-menu[hidden] {
  display: none;
}

.quick-menu-card {
  width: min(360px, 100%);
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 13%, transparent), transparent 42%),
    var(--surface);
  color: var(--text);
  padding: 22px;
  box-shadow: var(--shadow);
}

.quick-menu-card h3,
.quick-menu-card p {
  margin: 0;
}

.quick-menu-card h3 {
  font-size: 1.3rem;
  line-height: 1.1;
}

.quick-menu-actions {
  display: grid;
  gap: 10px;
}

.quick-menu-actions button {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface-strong) 82%, transparent);
  color: var(--text);
  padding: 0 14px;
  text-align: left;
  font-size: 0.86rem;
  font-weight: 900;
}

.quick-menu-actions button:last-child {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, var(--surface-strong));
}

.master-board,
.today-practice-section,
.now-section,
.boards-section,
.reflection-panel,
.board-editor-card,
.image-source-card,
.visualize-card,
.mobile-board-form {
  margin-top: 24px;
}

.screen-panel {
  display: none;
}

.screen-panel.active {
  display: block;
}

.master-board {
  min-height: 206px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  background: linear-gradient(140deg, var(--surface-strong), color-mix(in srgb, var(--accent) 14%, var(--surface)));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--soft-shadow);
}

.board-copy h3 {
  margin: 8px 0 18px;
  font-size: 1.04rem;
  line-height: 1.18;
}

.progress-line {
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--muted) 18%, transparent);
  overflow: hidden;
}

.progress-line span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}

.caption {
  margin-top: 8px;
  font-size: 0.75rem;
}

.collage {
  display: grid;
  gap: 8px;
}

.collage-large {
  grid-template-columns: 1fr 1fr;
}

.collage img,
.board-card img,
.details-image-grid img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  border-radius: 12px;
}

.collage-large img:first-child {
  grid-row: span 2;
}

.practice-overview {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.today-practice-section .section-heading {
  align-items: flex-start;
  gap: 22px;
}

.today-practice-section .text-button {
  margin-top: 2px;
}

.practice-summary-card,
.practice-status-grid > div {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--text) 6%, transparent);
}

.practice-summary-card span,
.practice-status-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.practice-summary-card strong {
  display: block;
  margin-top: 6px;
  font-size: 1.08rem;
  line-height: 1.2;
}

.practice-summary-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.36;
}

.practice-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.practice-status-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  line-height: 1.22;
}

.focus-list {
  display: grid;
  gap: 12px;
}

.focus-item {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--text) 7%, transparent);
}

.focus-main {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 0;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  text-align: left;
}

.focus-days {
  display: grid;
  place-items: center;
  min-height: 44px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--gold) 22%, transparent);
  color: var(--text);
  font-weight: 900;
}

.focus-item strong,
.focus-item span {
  display: block;
}

.focus-item span {
  color: var(--muted);
  font-size: 0.78rem;
}

.focus-remove-button {
  width: fit-content;
  min-height: 30px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-strong) 78%, transparent);
  color: var(--accent);
  padding: 0 10px;
  font-size: 0.7rem;
  font-weight: 900;
}

.empty-focus-item {
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface-strong) 54%, transparent);
  color: var(--muted);
  padding: 16px;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.board-card {
  position: relative;
  min-height: 166px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 18px;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--text) 6%, transparent);
  overflow: hidden;
}

.board-card-main {
  width: 100%;
  min-height: 166px;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 11px;
  text-align: left;
}

.board-card.selected {
  border-color: color-mix(in srgb, var(--accent) 70%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
}

.board-thumb {
  height: 92px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-bottom: 11px;
}

.board-card strong,
.board-card span {
  display: block;
}

.board-card span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76rem;
}

.section-help,
.editor-help {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.42;
}

.section-help {
  margin: 8px 0 16px;
}

.life-area-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: -4px 0 16px;
}

.life-area-actions .secondary-button {
  min-height: 40px;
  border-radius: 12px;
  padding: 0 8px;
  font-size: 0.76rem;
}

.editor-help {
  margin-top: -8px;
}

.text-button {
  min-height: 32px;
  flex: 0 0 auto;
  padding: 0 14px;
  color: var(--accent);
  font-weight: 800;
}

.bottom-nav {
  position: relative;
  z-index: 12;
  flex: 0 0 auto;
  gap: 10px;
  margin: 0 14px 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface-strong) 92%, transparent);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.08);
}

.bottom-item {
  min-height: 50px;
  flex: 1 1 0;
  font-size: 0.78rem;
  border-radius: 14px;
  padding: 0 6px;
  font-weight: 900;
}

.details-panel {
  display: grid;
  align-content: start;
  gap: 24px;
}

.details-panel h2,
.details-panel p {
  margin: 0;
}

.details-panel > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.5;
}

.details-panel .eyebrow + h2 {
  margin-top: -12px;
}

.details-image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.details-image-grid.compact {
  margin-top: 18px;
  max-height: 292px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  scroll-padding-block: 8px;
}

.details-image-grid.compact:empty::after {
  content: "Images you add to this board will appear here.";
  grid-column: 1 / -1;
  display: grid;
  min-height: 118px;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.3;
  padding: 16px;
  text-align: center;
}

.details-image-grid .image-tile,
.details-image-grid img {
  aspect-ratio: 1;
}

.image-tile {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border-radius: 12px;
  background: color-mix(in srgb, var(--muted) 10%, transparent);
}

.image-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-tile.broken {
  border: 1px dashed color-mix(in srgb, var(--accent) 60%, var(--line));
}

.image-tile.broken img {
  opacity: 0.08;
}

.image-tile.broken::after {
  content: "Use a direct image URL (.jpg, .png, .webp)";
  position: absolute;
  inset: 8px;
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
}

.image-tile button {
  position: absolute;
  right: 7px;
  bottom: 7px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-strong) 92%, transparent);
  color: var(--text);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 5px 8px;
}

.editor-section {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface-strong) 58%, transparent);
  box-shadow: var(--soft-shadow);
}

.mobile-board-form {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 22px;
  padding: 20px;
  box-shadow: var(--soft-shadow);
}

.action-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 10px;
}

.action-row [hidden] {
  display: none;
}

.editor-section-heading span {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 900;
}

.editor-section-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.field {
  display: grid;
  gap: 10px;
  padding: 2px 0;
}

.field-hint {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.35;
}

.field input,
.field textarea,
.reflection-panel textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--text);
  border-radius: 14px;
  padding: 13px 14px;
  outline: none;
}

.field input:focus,
.field textarea:focus,
.reflection-panel textarea:focus {
  border-color: color-mix(in srgb, var(--accent) 72%, var(--line));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 13%, transparent);
}

.field textarea,
.reflection-panel textarea {
  min-height: 118px;
  resize: vertical;
}

.primary-button {
  min-height: 48px;
  background: var(--text);
  color: var(--surface);
  font-weight: 900;
  padding: 0 18px;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--text) 16%, transparent);
}

.secondary-button {
  min-height: 44px;
  color: var(--accent);
  font-weight: 900;
  padding: 0 18px;
}

.reflection-panel {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 13%, transparent), transparent 34%),
    var(--surface);
  border-radius: 24px;
  padding: 20px;
  box-shadow: var(--soft-shadow);
}

.reflection-panel h3 {
  margin: 6px 0 0;
  font-size: 1.7rem;
  line-height: 1.04;
}

.reflection-panel .primary-button {
  width: 100%;
  margin-top: 4px;
}

.journal-hero p:not(.mini-label) {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.journal-tracker-grid {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}

.feeling-check-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.journal-field {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.journal-field input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--text);
  border-radius: 14px;
  min-height: 44px;
  padding: 0 13px;
  outline: none;
}

.journal-field textarea {
  min-height: 92px;
  line-height: 1.55;
}

.journal-field input:focus {
  border-color: color-mix(in srgb, var(--accent) 72%, var(--line));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 13%, transparent);
}

.journal-history {
  display: grid;
  gap: 14px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.journal-history .section-heading h3 {
  margin: 0;
  font-size: 1.02rem;
}

.journal-entry-list {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
}

.journal-entry-card,
.empty-journal-entry {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface-strong) 72%, transparent);
  padding: 14px;
}

.journal-entry-card {
  display: grid;
  gap: 10px;
  width: 100%;
  min-height: 0;
  color: var(--text);
  text-align: left;
}

.journal-entry-card.editing {
  border-color: color-mix(in srgb, var(--accent) 70%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
}

.journal-entry-open {
  display: grid;
  gap: 6px;
  width: 100%;
  min-height: 0;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  text-align: left;
}

.journal-entry-open span,
.journal-entry-open small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.journal-entry-open strong {
  font-size: 0.94rem;
  line-height: 1.25;
}

.journal-entry-open p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.42;
}

.journal-delete-button {
  width: fit-content;
  min-height: 34px;
  border: 1px solid color-mix(in srgb, var(--accent) 46%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 9%, var(--surface-strong));
  color: var(--accent);
  padding: 0 12px;
  font-size: 0.72rem;
  font-weight: 900;
}

.journal-edit-state {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-strong) 64%, transparent);
}

.journal-edit-state p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.35;
}

.journal-edit-state .secondary-button {
  width: 100%;
}

.journal-edit-state .secondary-button[hidden] {
  display: none;
}

.empty-journal-entry {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.board-editor-card,
.image-source-card,
.visualize-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 22px;
  padding: 20px;
  box-shadow: var(--soft-shadow);
}

.board-editor-card h3,
.board-editor-card p,
.image-source-card h3,
.image-source-card p,
.visualize-card h3,
.visualize-card p {
  margin-left: 0;
  margin-right: 0;
}

.board-editor-card h3,
.image-source-card h3,
.visualize-card h3 {
  margin-top: 6px;
}

.board-editor-card p,
.image-source-card p {
  color: var(--muted);
  line-height: 1.45;
}

.board-intention-summary,
.visualize-intention,
.visualize-affirmation {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.board-intention-summary div,
.visualize-intention div,
.visualize-affirmation {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-strong) 68%, transparent);
  padding: 12px;
}

.board-intention-summary span,
.visualize-intention span,
.visualize-affirmation span {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.board-intention-summary strong,
.visualize-intention strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.25;
}

.source-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
  max-height: 438px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
}

.show-more-button {
  width: 100%;
  margin-top: 14px;
}

.image-search-bar {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.image-search-bar {
  grid-template-columns: minmax(0, 1fr) auto;
}

.image-search-bar input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--text);
  border-radius: 14px;
  min-height: 44px;
  padding: 0 13px;
  outline: none;
}

.image-search-bar input:focus,
select:focus {
  border-color: color-mix(in srgb, var(--accent) 72%, var(--line));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 13%, transparent);
}

.provider-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 10px;
}

.upload-button {
  display: grid;
  place-items: center;
  min-height: 44px;
  text-align: center;
}

#imageUploadInput {
  display: none;
}

.image-search-status {
  min-height: 20px;
  margin-top: 12px;
  font-size: 0.78rem;
  font-weight: 700;
}

.gallery-item {
  position: relative;
  min-height: 118px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-strong);
  padding: 0;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 118px;
  object-fit: cover;
}

.gallery-item .gallery-action,
.gallery-item .gallery-source {
  position: absolute;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-strong) 92%, transparent);
  color: var(--text);
  padding: 5px 8px;
  font-size: 0.68rem;
  font-weight: 900;
}

.gallery-item .gallery-action {
  left: 8px;
  bottom: 8px;
}

.gallery-item .gallery-source {
  left: 8px;
  right: 8px;
  top: 8px;
  max-width: calc(100% - 16px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-item.selected {
  border-color: color-mix(in srgb, var(--accent) 72%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
}

.source-item {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  border-radius: 14px;
  padding: 14px;
}

.source-item button {
  width: fit-content;
  min-height: 32px;
  margin-top: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent);
  padding: 0 10px;
  font-size: 0.72rem;
  font-weight: 900;
}

.source-item span {
  color: var(--muted);
  font-size: 0.78rem;
}

.source-item code {
  max-width: 100%;
  overflow: hidden;
  color: var(--accent);
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visualize-card {
  min-height: 570px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 18%, transparent), transparent 42%),
    var(--surface);
}

.visualize-card h3 {
  font-size: 1.8rem;
  line-height: 1.02;
}

.visualize-board-picker {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.visualize-board-picker span,
.visualize-reflection > span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.native-picker-source {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.picker-button {
  width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-strong) 82%, transparent);
  color: var(--text);
  padding: 10px 12px;
  text-align: left;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--text) 5%, transparent);
}

.picker-button strong,
.picker-button small {
  display: block;
}

.picker-button strong {
  min-width: 0;
  overflow: hidden;
  font-size: 0.92rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.picker-button small {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.visualize-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.visualize-stats div {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-strong) 68%, transparent);
  padding: 10px;
  text-align: center;
}

.visualize-stats span {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.visualize-stats strong {
  font-size: 0.82rem;
  line-height: 1.15;
}

.visualize-image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 18px 0;
  max-height: 430px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
}

.visualize-image-button {
  min-height: 0;
  border: 0;
  border-radius: 16px;
  background: transparent;
  padding: 0;
  overflow: hidden;
}

.visualize-image-button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent);
  outline-offset: 3px;
}

.visualize-image-button img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: inherit;
}

.visualize-image-button:first-child {
  grid-column: span 2;
}

.visualize-image-button:first-child img {
  height: 230px;
}

#visualizeAffirmation {
  margin: 7px 0 0;
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.35;
}

.visualize-practice {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface-strong) 74%, transparent);
}

.timer-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.timer-card span,
.practice-steps span,
.focus-affirmation-card span,
.visualize-status {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.timer-card strong {
  color: var(--text);
  font-size: 2rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.practice-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.practice-steps span {
  min-height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  text-align: center;
}

.guided-prompt {
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1.3;
  padding: 10px 12px;
  text-align: center;
}

.complete-visualize-button {
  width: 100%;
  min-height: 48px;
  border: 1px solid color-mix(in srgb, var(--accent) 52%, var(--line));
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 18%, var(--surface-strong));
  color: var(--text);
  font-weight: 900;
}

.complete-visualize-button:disabled {
  cursor: not-allowed;
  border-color: var(--line);
  background: color-mix(in srgb, var(--muted) 12%, var(--surface-strong));
  color: var(--muted);
  box-shadow: none;
}

.complete-visualize-button.completed {
  background: var(--text);
  color: var(--surface);
}

.sound-toggle-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--gold) 14%, var(--surface-strong));
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 900;
}

.sound-select {
  width: 100%;
  min-height: 42px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 900;
}

.visualize-status {
  margin: 10px 0 0;
  line-height: 1.35;
  text-align: center;
}

.visualize-reflection {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface-strong) 70%, transparent);
}

.visualize-reflection[hidden] {
  display: none;
}

.visualize-reflection .journal-field {
  margin-bottom: 0;
}

.visualize-reflection textarea {
  min-height: 84px;
}

.image-focus-modal {
  position: fixed;
  inset: 0;
  z-index: 34;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(10, 10, 10, 0.58);
}

.image-focus-modal.full-vision {
  padding: 12px;
  background: rgba(5, 5, 5, 0.84);
}

.image-focus-modal[hidden] {
  display: none;
}

.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 34;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(10, 10, 10, 0.58);
}

.confirm-modal[hidden] {
  display: none;
}

.confirm-card {
  width: min(380px, 100%);
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 13%, transparent), transparent 42%),
    var(--surface);
  color: var(--text);
  padding: 22px;
  box-shadow: var(--shadow);
}

.confirm-card h3,
.confirm-card p {
  margin: 0;
}

.confirm-card h3 {
  font-size: 1.3rem;
  line-height: 1.1;
}

.confirm-card p:not(.mini-label) {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.choice-modal {
  position: fixed;
  inset: 0;
  z-index: 34;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(10, 10, 10, 0.58);
}

.choice-modal[hidden] {
  display: none;
}

.choice-card {
  width: min(380px, 100%);
  max-height: min(720px, calc(100vh - 44px));
  display: grid;
  gap: 14px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 13%, transparent), transparent 42%),
    var(--surface);
  color: var(--text);
  padding: 22px;
  box-shadow: var(--shadow);
}

.choice-card h3,
.choice-card p {
  margin: 0;
}

.choice-card h3 {
  font-size: 1.3rem;
  line-height: 1.1;
}

.choice-list {
  display: grid;
  gap: 10px;
}

.choice-option {
  min-height: 52px;
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-strong) 78%, transparent);
  color: var(--text);
  padding: 12px 14px;
  text-align: left;
}

.choice-option strong,
.choice-option span {
  display: block;
}

.choice-option strong {
  font-size: 0.9rem;
  line-height: 1.2;
}

.choice-option span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.3;
}

.choice-option.selected {
  border-color: color-mix(in srgb, var(--accent) 70%, var(--line));
  background: color-mix(in srgb, var(--accent) 12%, var(--surface-strong));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
}

.choice-actions {
  display: grid;
}

.area-modal {
  position: fixed;
  inset: 0;
  z-index: 34;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(10, 10, 10, 0.58);
}

.area-modal[hidden] {
  display: none;
}

.area-card {
  width: min(380px, 100%);
  max-height: min(720px, calc(100vh - 44px));
  display: grid;
  gap: 14px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 13%, transparent), transparent 42%),
    var(--surface);
  color: var(--text);
  padding: 22px;
  box-shadow: var(--shadow);
}

.area-card h3,
.area-card p {
  margin: 0;
}

.area-card h3 {
  font-size: 1.3rem;
  line-height: 1.1;
}

.image-focus-content {
  width: min(380px, 100%);
  max-height: min(760px, calc(100vh - 44px));
  display: grid;
  gap: 14px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 13%, transparent), transparent 42%),
    var(--surface);
  color: var(--text);
  padding: 22px;
  box-shadow: var(--shadow);
}

.image-focus-modal.full-vision .image-focus-content {
  width: min(520px, 100%);
  max-height: calc(100vh - 24px);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 16%, transparent), transparent 34%),
    var(--surface);
}

.image-focus-content h3,
.image-focus-content p {
  margin: 0;
}

.image-focus-content h3 {
  font-size: 1.3rem;
  line-height: 1.1;
}

.image-focus-content img {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 430px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 26px color-mix(in srgb, var(--text) 12%, transparent);
}

.image-focus-modal.full-vision .image-focus-content img {
  max-height: min(62vh, 560px);
}

.focus-session-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.focus-session-meta[hidden] {
  display: none;
}

.focus-session-meta span {
  min-height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-strong) 82%, transparent);
  color: var(--muted);
  padding: 0 12px;
  font-size: 0.74rem;
  font-weight: 900;
}

.focus-affirmation-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface-strong) 72%, transparent);
  padding: 14px;
}

.focus-affirmation-card p {
  margin: 6px 0 0;
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.36;
}

.image-focus-actions {
  display: grid;
  margin-top: 2px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 20;
  max-width: min(360px, calc(100% - 32px));
  transform: translate(-50%, 130%);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--text);
  color: var(--surface);
  box-shadow: var(--shadow);
  padding: 12px 16px;
  font-size: 0.86rem;
  font-weight: 900;
  opacity: 0;
  transition: transform 180ms ease, opacity 180ms ease;
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: minmax(340px, 440px);
    gap: 36px;
    align-items: start;
    padding-block: 42px;
  }

  .sidebar,
  .details-panel {
    min-height: auto;
  }

  .sidebar {
    min-height: 0;
  }
}

@media (max-width: 520px) {
  .app-shell {
    display: block;
    padding: 0;
  }

  .sidebar,
  .details-panel,
  .phone-status {
    display: none;
  }

  .phone-frame {
    min-height: 100vh;
    border-radius: 0;
    padding: 0;
  }

  .mobile-app {
    min-height: 100vh;
    height: 100vh;
    border-radius: 0;
  }

  .image-search-bar,
  .provider-row {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.android-shell .app-shell {
  display: block;
  min-height: 100vh;
  padding: 0;
}

.android-shell .sidebar,
.android-shell .details-panel,
.android-shell .phone-status {
  display: none;
}

.android-shell .phone-frame {
  min-height: 100vh;
  border-radius: 0;
  padding: 0;
  background: var(--bg);
  box-shadow: none;
}

.android-shell .mobile-app {
  min-height: 100vh;
  height: 100vh;
  border-radius: 0;
}

.android-shell .app-content {
  padding: 22px 20px 96px;
  scroll-padding-bottom: 120px;
}

.android-shell .bottom-nav {
  margin: 0 14px 58px;
}

.android-shell .toast {
  bottom: 104px;
}

.android-shell .master-board {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 0;
}

.android-shell .collage-large {
  height: 96px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.android-shell .collage-large img:first-child {
  grid-row: auto;
}

.android-shell .collage img {
  height: 100%;
  max-height: 96px;
}

.android-shell .visualize-card {
  min-height: 0;
}
