.mobile-app { width: 100%; min-height: 0px; height: 100dvh; }
.app-header { gap: 8px; padding: 10px 15px; height: 65px; }
.wordmark { font-size: 15px; }
.brand { gap: 6px; }
.brand-glyph { width: 32px; height: 32px; border-radius: 11px; font-size: 21px; }
#route-title { font-size: 10px; letter-spacing: 0.055em; max-width: 18ch; margin: auto; }
.app-header .round { width: 35px; height: 35px; }
.route { padding: 8px 15px 25px; }
.territory-grid { grid-template-columns: repeat(2, minmax(0px, 1fr)); grid-template-rows: 184px 213px 145px 113px; gap: 12px; }
.territory-grid > .card { padding: 17px; border-radius: 25px; border: 1px solid rgba(255, 255, 255, 0.6); box-shadow: rgba(255, 255, 255, 0.6) 0px 1px 2px inset, rgba(31, 50, 59, 0.043) 0px -2px 4px inset, rgba(52, 68, 56, 0.05) 0px 4px 8px, rgba(31, 47, 67, 0.32) 0px 14px 25px -16px; }
.territory-grid .card::before { border-color: rgba(255, 255, 255, 0.4); }
.territory-grid .overline { font-size: 8px; letter-spacing: 0.075em; line-height: 1.55; max-width: 25ch; padding-right: 24px; z-index: 2; }
.territory-grid .card-arrow { width: 27px; height: 27px; right: 11px; top: 11px; z-index: 3; }
.territory-grid .card-arrow svg { width: 13px; height: 13px; }
.territory-grid h2 { font-size: 25px; font-weight: 660; line-height: 1.03; letter-spacing: -0.035em; }
.territory-grid small { font-size: 10px; line-height: 1.45; max-width: 23ch; }
.tile-caption { position: relative; z-index: 2; display: grid; gap: 8px; }
.territory-grid .home-feed { grid-column: 1 / -1; display: flex; justify-content: center; gap: 15px; --card: linear-gradient(135deg,#fffefa,#f5eeec 68%,#ebdfdc); --card-ink: #282e2b; }
.home-feed > .overline { position: absolute; top: 16px; left: 17px; max-width: 18ch; }
.home-feed .tile-caption { width: 45%; margin-top: 21px; }
.home-feed h2 { font-size: 27px; }
.feed-board-image { position: absolute; right: -13px; bottom: 0px; width: 63%; height: 96%; object-fit: contain; object-position: right bottom; pointer-events: none; filter: drop-shadow(rgba(48, 41, 36, 0.125) 0px 7px 4px); transform-origin: 75% 80%; }
.home-research { --card: linear-gradient(145deg,#b4d5df,#d8e7e7 58%,#edf3ee); --card-ink: #233d40; }
.home-research .overline { max-width: 15ch; }
.territory-grid .home-research h2 { font-size: 17px; line-height: 1.12; letter-spacing: -0.035em; }
.home-research .tile-caption { margin-top: auto; }
.research-mark { position: absolute; right: 20px; top: 62px; width: 82px; height: 66px; transform: rotate(-14deg); }
.research-mark::before, .research-mark::after { content: ""; position: absolute; width: 74px; height: 38px; border: 1px solid rgb(255, 255, 255); border-radius: 50%; transform: rotate(33deg); top: 11px; left: 0px; box-shadow: rgba(52, 81, 89, 0.07) 0px 5px 8px; }
.research-mark::after { transform: rotate(-33deg); }
.research-mark i { position: absolute; z-index: 1; border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 50%; background: linear-gradient(145deg, rgb(255, 255, 255), rgb(142, 175, 171)); box-shadow: rgba(55, 87, 82, 0.145) 0px 5px 8px; width: 15px; height: 15px; }
.research-mark i:nth-child(1) { left: 2px; top: 13px; }
.research-mark i:nth-child(2) { right: 1px; bottom: 10px; }
.research-mark i:nth-child(3) { left: 36px; top: 27px; width: 22px; height: 22px; background: linear-gradient(145deg, rgb(156, 219, 206), rgb(63, 139, 122)); }
.research-mark i:nth-child(4) { left: 40px; top: 0px; width: 9px; height: 9px; }
.territory-grid .hq-queen-tile, .hq-queen-tile { --card: linear-gradient(145deg,#6d8e7c,#456759 58%,#264e43); --card-ink: #fff; position: relative; color: rgb(255, 255, 255); min-height: 213px; }
.hq-queen-tile .hq-clay-icon { position: absolute; width: 94%; height: 70%; right: -20px; top: 22px; object-fit: contain; object-position: center center; filter: drop-shadow(rgba(13, 50, 38, 0.22) -8px 9px 7px); animation: 7s ease-in-out 0s infinite normal none running queen-air; }
.hq-queen-tile .tile-caption { margin-top: auto; text-shadow: rgba(30, 70, 59, 0.145) 0px 1px 6px; }
.hq-queen-tile .hq-card-name { font-size: 22px; font-weight: 600; letter-spacing: 0.025em; white-space: normal; line-height: 1.05; }
.hq-queen-tile small { opacity: 0.86; max-width: 15ch; }
.hq-queen-tile .overline { color: rgb(231, 242, 233); font-size: 8px; }
.territory-grid .team-board-tile { grid-column: 1 / -1; --card: linear-gradient(115deg,#f7f9ef,#e4ebda 56%,#cedfc4); --card-ink: #293d33; min-height: 0px; justify-content: center; }
.team-board-tile .tile-caption { width: 48%; gap: 7px; margin-top: 20px; }
.team-board-image { position: absolute; right: -5px; bottom: 1px; width: 53%; height: 97%; object-fit: contain; object-position: right bottom; filter: drop-shadow(rgba(31, 64, 61, 0.13) 0px 8px 7px); pointer-events: none; }
.team-board-tile > .overline { position: absolute; top: 16px; left: 17px; }
.territory-grid .team-board-tile h2 { font-size: 25px; }
.territory-grid .home-path-compact { --card: linear-gradient(145deg,#f4e6d9,#efdfd0 60%,#f8efe6); --card-ink: #4a3c32; display: flex; gap: 6px; justify-content: flex-end; }
.territory-grid .home-path-compact h2 { font-size: 20px; }
.path-tile .overline { font-size: 8px; position: absolute; top: 14px; left: 17px; margin: 0px; }
.path-track { position: absolute; top: 37px; right: 18px; display: flex; align-items: center; width: 52px; justify-content: space-between; }
.path-track::before { content: ""; position: absolute; left: 0px; right: 0px; height: 1px; background: rgb(185, 165, 146); }
.path-track i { width: 5px; height: 5px; border-radius: 50%; background: rgb(210, 188, 166); z-index: 1; border: 1px solid rgb(248, 240, 228); }
.path-track i:first-child { width: 8px; height: 8px; background: rgb(105, 148, 131); }
.territory-grid .home-profile-compact { --card: linear-gradient(135deg,#fff,#edf1ef); --card-ink: #2f3b34; justify-content: flex-end; gap: 6px; }
.territory-grid .home-profile-compact > .overline { position: absolute; top: 15px; left: 17px; }
.territory-grid .home-profile-compact h2 { font-size: 20px; }
.profile-mini { position: absolute; top: 39px; right: 19px; width: 24px; height: 24px; display: grid; place-items: center; background: rgb(224, 235, 228); border: 2px solid rgb(255, 255, 255); border-radius: 50%; font-size: 9px; color: rgb(71, 100, 87); }
.hq-pair { gap: 12px; }
.hq-pair .hub-tile { min-height: 275px; padding: 17px; }
.hq-pair .hq-card-name { font-size: 24px; }
.hq-pair .team-board-tile .team-board-image { width: 115%; height: 66%; right: -18px; top: 45px; bottom: auto; }
.hq-pair .team-board-tile .tile-caption { margin-top: auto; width: 100%; gap: 8px; }
.hq-pair .team-board-tile h2 { font-size: 23px; }
.hq-path { min-height: 124px; width: calc(50% - 6px); margin-top: 14px; padding: 17px; --card: linear-gradient(145deg,#f4e6d9,#efdfd0); --card-ink: #4a3c32; justify-content: flex-end; gap: 6px; }
.hq-path h2 { font-size: 22px; }
.hq-classic { margin-top: 18px; width: 100%; background: rgb(255, 255, 255); color: rgb(50, 75, 64); font-size: 13px; }
.sheet:has(.path-heading) { --card: linear-gradient(145deg,#fbf5ed,#e8ebe1); --card-ink: #3b463b; --line: #a6b8a280; }
.path-heading { padding-top: 20px; }
.path-heading > .overline { font-size: 10px; letter-spacing: 0.12em; display: block; margin-bottom: 24px; }
.sheet .path-heading h2 { font-size: 31px; padding: 0px; line-height: 1.05; max-width: 12ch; margin-bottom: 18px; }
.sheet .path-heading .lede { font-size: 15px; line-height: 1.6; max-width: 25ch; }
.sheet:has(.path-heading) .input { min-height: 120px; resize: none; background: rgba(255, 255, 255, 0.533); }
.sheet:has(.path-heading) .surface-button.primary { background: linear-gradient(rgb(101, 168, 149), rgb(64, 131, 111)); border-color: rgb(255, 255, 255); color: white; }
.sheet:has(.path-heading) .surface-button { font-size: 12px; padding: 12px 10px; min-height: 45px; }
.p-primary { --card: linear-gradient(145deg,#e4f3ef,#cee7df 70%,#b7d9ce); --card-ink: #214e43; --wash: #e4f3ef; --line: #4e8d7f50; }
.sheet.p-primary .chat-intro h2 { font-size: 29px; line-height: 1.12; max-width: 13ch; margin-top: 24px; }
.sheet.p-primary .chat-intro p:last-child { font-size: 13px; letter-spacing: 0.04em; }
.research-panel { padding-top: 28px; }
.research-panel > h2 { max-width: 13ch; font-size: 30px !important; padding: 0px !important; }
.sheet .research-intro { font-size: 14px; line-height: 1.6; color: rgb(59, 90, 96); }
.research-empty { margin-top: 25px; border: 1px solid rgb(255, 255, 255); border-radius: 23px; padding: 23px 20px; background: rgba(255, 255, 255, 0.25); }
.research-empty .research-steps { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 19px 0px 0px; font-size: 10px; color: rgb(87, 120, 122); }
.research-steps i { width: 4px; height: 4px; border-radius: 50%; background: rgb(100, 155, 146); }
.research-panel .surface-button { font-size: 13px; font-weight: 550; min-height: 46px; background: rgba(255, 255, 255, 0.5); }
.research-panel .primary { background: linear-gradient(rgb(71, 123, 112), rgb(42, 96, 85)); color: white; }
.research-list { display: grid; gap: 12px; margin: 22px 0px; }
.research-item { display: block; width: 100%; text-align: left; background: rgba(255, 255, 255, 0.533); border: 1px solid rgb(255, 255, 255); border-radius: 19px; padding: 18px; color: rgb(36, 75, 75); }
.research-item small { font-size: 10px; }
.research-item h3 { font-size: 20px; margin: 8px 0px 16px !important; }
.research-progress { height: 3px; background: rgba(173, 198, 192, 0.25); border-radius: 3px; overflow: hidden; }
.research-progress i { display: block; height: 100%; background: rgb(72, 143, 122); }
.research-panel select { font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-optical-sizing: inherit; font-size-adjust: inherit; font-kerning: inherit; font-feature-settings: inherit; font-variation-settings: inherit; font-language-override: inherit; color: inherit; width: 100%; padding: 13px; border: 1px solid rgba(154, 187, 181, 0.5); border-radius: 14px; background: rgba(255, 255, 255, 0.5); font-size: 15px; }
.research-panel h3 { font-size: 20px; }
.research-stage-tabs { display: flex; gap: 6px; overflow: auto; margin: 20px -4px 18px; padding: 4px; scrollbar-width: none; }
.research-stage-tabs button { min-width: 64px; min-height: 44px; border: 1px solid rgb(255, 255, 255); border-radius: 15px; background: rgba(255, 255, 255, 0.267); color: rgb(62, 100, 100); font-size: 11px; }
.research-stage-tabs button[aria-selected="true"] { background: rgb(250, 253, 251); box-shadow: rgba(54, 94, 89, 0.09) 0px 4px 9px; color: rgb(34, 87, 73); }
.research-panel .form-label { font-weight: 550; }
.research-panel textarea { resize: none; min-height: 115px; background: rgba(255, 255, 255, 0.667); }
.research-footer { display: flex; gap: 8px; margin-top: 14px; }
.research-footer > * { flex: 1 1 0%; }
.research-panel .research-saved { font-size: 11px; margin-top: 14px; opacity: 0.7; }
.dark .home-profile-compact, .dark .team-board-tile { border-color: rgba(255, 255, 255, 0.6); }
@keyframes queen-air { 
  0%, 100% { transform: translateY(0px) rotate(-2deg); }
  50% { transform: translateY(-3px) rotate(1deg); }
}
@media (hover: hover) and (pointer: fine) {
  .card:hover .feed-board-image { transform: translateY(-2px) rotate(-1deg); transition: transform 220ms var(--ease); }
  .card:hover .team-board-image { transform: translateY(-2px); transition: transform 220ms var(--ease); }
}
@media (max-width: 350px) {
  .route { padding-left: 12px; padding-right: 12px; }
  .territory-grid { grid-template-rows: 169px 205px 133px 112px; gap: 10px; }
  .territory-grid > .card { padding: 14px; }
  .home-feed h2 { font-size: 24px; }
  .territory-grid .home-research h2 { font-size: 14.5px; letter-spacing: -0.04em; }
  .hq-queen-tile .hq-card-name { font-size: 20px; }
  .territory-grid .team-board-tile h2 { font-size: 22px; }
  .territory-grid .home-path-compact h2, .territory-grid .home-profile-compact h2 { font-size: 17px; }
  .territory-grid .overline { font-size: 7px; }
  .tile-caption small { font-size: 9px; }
  .hq-queen-tile .hq-clay-icon { right: -18px; width: 100%; }
  .hq-pair .hq-card-name { font-size: 21px; }
  .hq-pair .team-board-tile h2 { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .hq-queen-tile .hq-clay-icon { animation: auto ease 0s 1 normal none running none; }
  .card:hover .feed-board-image, .card:hover .team-board-image { transform: none; transition: none; }
}
.home-feed > .overline { max-width: calc(100% - 65px); white-space: nowrap; }
.hq-queen-tile .hq-clay-icon { height: 54%; top: 19px; right: -16px; width: 88%; }
.chat-project-door { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 14px; border: 1px solid rgb(255, 255, 255); border-radius: 18px; background: rgba(255, 255, 255, 0.333); color: rgb(49, 92, 78); box-shadow: rgb(255, 255, 255) 0px 1px inset, rgba(61, 119, 98, 0.082) 0px 6px 11px; text-align: left; margin-top: 23px; font-size: 13px; font-weight: 550; }
.chat-project-door img { width: 25px; height: 34px; object-fit: contain; }
.chat-project-door span { flex: 1 1 0%; }
.chat-project-door svg { width: 16px; height: 16px; }