:root {
  --ink:#243d36;
  --muted:#7c8a83;
  --green:#31775d;
  --line:#e5e9e3;
  --cream:#f5f5f0;
  --shadow:0 12px 40px #263e3220;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family:
    Inter,
    "Pretendard",
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    sans-serif;
  color: var(--ink);
  background: #f8f9f5;
  font-size: 14px;
}
button,
input,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button,
a,
input,
textarea {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #40866b;
}
button {
  transition: background .16s, transform .16s;
  border: 0;
}
button:hover {
  filter: brightness(.97);
}
button:active {
  transform: translateY(1px);
}
[hidden] {
  display: none !important;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 234px;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 30px 18px 18px;
  display: flex;
  flex-direction: column;
  z-index: 5;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 19px;
  padding: 0 10px;
}
.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 500;
  color: #829088;
  margin-top: 5px;
}
.logo {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  background: #2c604e;
  color: #fff;
  border-radius: 12px;
  font-family: Georgia;
  font-size: 34px;
  position: relative;
  line-height: 1;
}
.logo span {
  color: #d4df8c;
  position: absolute;
  right: 3px;
  top: -2px;
}
.workspace {
  display: flex;
  gap: 10px;
  align-items: center;
  background: #f7f8f4;
  border: 1px solid #ebeee8;
  border-radius: 10px;
  margin-top: 29px;
  padding: 12px 9px;
  font-size: 12px;
  font-weight: 600;
}
.workspace-icon {
  padding: 7px;
  background: #e6ebe1;
  color: #537353;
  border-radius: 7px;
}
.workspace small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 5px;
  font-weight: 400;
}
i,
.online-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #659f64;
  margin-right: 5px;
}
nav {
  padding: 24px 0 22px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  background: none;
  text-align: left;
  padding: 12px 13px;
  border-radius: 8px;
  color: #718078;
  margin-bottom: 5px;
  font-weight: 600;
}
.nav > span {
  font-size: 20px;
  width: 23px;
}
.nav.active {
  background: #eaf2ea;
  color: #346348;
}
.nav b,
.nav kbd {
  margin-left: auto;
  font-size: 10px;
  font-weight: 500;
  background: #dce9dc;
  padding: 3px 6px;
  border-radius: 4px;
}
.nav b {
  background: #f1f3ee;
}
.section-title {
  font-size: 11px;
  color: #939b94;
  padding: 0 13px 12px;
  display: flex;
  justify-content: space-between;
}
.team-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: transparent;
  padding: 9px 11px;
  border-radius: 8px;
  text-align: left;
  color: var(--ink);
}
.team-row:hover,
.team-row.selected {
  background: #f1f5ed;
}
.mini-avatar {
  width: 32px;
  height: 32px;
  background: var(--avatar-bg,#f0e9d7);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}
.mini-avatar svg {
  height: 32px;
  width: 28px;
  image-rendering: pixelated;
}
.team-info {
  flex: 1;
}
.team-info strong {
  font-size: 12px;
  font-weight: 600;
  display: block;
}
.team-info small {
  font-size: 10px;
  display: block;
  color: var(--muted);
  margin-top: 3px;
}
.team-row .dot {
  width: 6px;
  height: 6px;
  background: #99b894;
  border-radius: 100%;
}
.sidebar-note {
  margin-top: auto;
  background: #f6f7ef;
  border-radius: 10px;
  padding: 15px;
  color: #537252;
}
.sidebar-note > span {
  font-size: 23px;
  color: #a2ae6c;
  display: block;
  margin-bottom: 5px;
}
.sidebar-note strong {
  font-size: 13px;
  line-height: 1.6;
}
.sidebar-note p {
  color: #87917d;
  font-size: 10px;
  line-height: 1.7;
}
.sidebar-note button {
  background: none;
  color: #52734e;
  font-size: 10px;
  padding: 3px 0;
  width: 100%;
  text-align: left;
}
.sidebar-note button span {
  float: right;
}
.profile {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
}
.profile small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 4px;
}
.profile .online-dot {
  margin-left: auto;
}
.profile-avatar {
  background: #f2e9d7;
  border: 1px solid #e6d9bb;
  padding: 9px 10px;
  border-radius: 50%;
  font-weight: bold;
}
main {
  margin-left: 234px;
  padding: 0 36px;
  max-width: 1900px;
}
header {
  height: 77px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.crumb {
  color: #8b968f;
  font-size: 11px;
}
.crumb span {
  margin: 0 12px;
  color: #bac0b7;
}
.crumb strong {
  font-weight: 500;
  color: #506357;
}
.top-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.prototype {
  font-size: 10px;
  color: #8a8f82;
  border: 1px solid #e3e6dc;
  border-radius: 20px;
  padding: 6px 10px;
}
.icon-button {
  border: 1px solid #dce2d7;
  border-radius: 50%;
  background: none;
  width: 25px;
  height: 25px;
  color: #8b998b;
}
.office-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 29px 0 25px;
  gap: 15px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.8px;
  color: #8d9b85;
  font-weight: 600;
}
h1 {
  font-size: 27px;
  letter-spacing: -1px;
  font-weight: 650;
  margin: 9px 0 9px;
}
h1 span {
  color: #87a55b;
}
.office-heading p {
  color: #889187;
  font-size: 12px;
  margin: 0;
}
.primary {
  background: var(--green);
  color: white;
  border-radius: 8px;
  padding: 12px 17px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 3px 8px #33624f16;
}
.office-shell {
  position: relative;
  background: #e8ede2;
  border: 1px solid #dfe5d8;
  border-radius: 16px;
  overflow: hidden;
  min-height: 460px;
  height: calc(100vh - 355px);
  max-height: 760px;
}
.map-top,
.map-bottom {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
  pointer-events: none;
}
.map-top {
  top: 0;
  padding: 20px 23px;
  font-size: 11px;
  font-weight: 600;
}
.map-top em {
  font-style: normal;
  font-size: 10px;
  color: #8c9888;
  font-weight: 400;
  margin-left: 10px;
}
.map-label {
  font-size: 8px;
  letter-spacing: 1.7px;
  color: #98a18e;
}
.map-bottom {
  bottom: 0;
  padding: 15px 20px;
  font-size: 10px;
  color: #87927c;
}
.map-bottom > div {
  display: flex;
  pointer-events: auto;
  border: 1px solid #d7dfce;
  background: #f8faf4;
  border-radius: 7px;
  overflow: hidden;
}
.map-bottom button {
  background: none;
  padding: 6px 11px;
  color: #66785d;
  font-size: 12px;
}
.map-bottom button:nth-child(2) {
  font-size: 9px;
  padding: 6px;
}
.map-scroll {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 43px 16px 37px;
  scrollbar-width: thin;
}
#room {
  width: 100%;
  height: 100%;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center;
  transition: transform .2s;
}
#room svg.office-svg {
  width: 100%;
  height: 100%;
  max-height: 650px;
  overflow: visible;
}
.svg-name {
  font-size: 13px;
  font-weight: 650;
  fill: #355347;
}
.svg-subtitle {
  font-size: 9px;
  fill: #8b9882;
}
.drawer {
  position: absolute;
  right: 12px;
  top: 12px;
  bottom: 12px;
  width: 370px;
  max-width: calc(100% - 24px);
  background: #fff;
  border: 1px solid #e4e9df;
  border-radius: 13px;
  box-shadow: var(--shadow);
  z-index: 4;
  animation: slide-in .22s ease-out;
  display: flex;
  flex-direction: column;
}
.drawer-head {
  padding: 24px 23px 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eff1eb;
  flex-shrink: 0;
}
.drawer h2 {
  margin: 6px 0 0;
  font-size: 21px;
  letter-spacing: -.7px;
}
.close {
  border: 1px solid #e6e9df;
  background: #fafbf8;
  border-radius: 7px;
  width: 29px;
  height: 29px;
  font-size: 21px;
  color: #94a08c;
}
.drawer #drawerBody {
  padding: 21px 23px;
  overflow: auto;
  flex: 1;
  scrollbar-width: thin;
}
.return-office {
  position: absolute;
  left: 20px;
  top: 56px;
  z-index: 3;
  background: #fffef1;
  color: #506b44;
  border: 1px solid #d6dfc7;
  border-radius: 7px;
  padding: 9px 12px;
  font-size: 10px;
  box-shadow: 0 3px 10px #45563d0d;
}
.return-office kbd {
  padding-left: 12px;
  color: #a0aa96;
}
.member-card {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 20px;
}
.member-card .mini-avatar {
  width: 48px;
  height: 48px;
}
.member-card .mini-avatar svg {
  height: 45px;
  width: 38px;
}
.member-card strong {
  font-size: 13px;
  display: block;
}
.member-card p {
  font-size: 11px;
  color: #8a9682;
  margin: 5px 0;
  line-height: 1.5;
}
.tabs {
  display: flex;
  background: #f3f5ef;
  padding: 4px;
  border-radius: 8px;
  margin: 0 0 22px;
  gap: 4px;
}
.tabs button {
  flex: 1;
  border-radius: 5px;
  padding: 8px;
  background: none;
  color: #95a08a;
  font-size: 11px;
}
.tabs button.active {
  background: #fff;
  color: #3c694d;
  box-shadow: 0 1px 3px #0000000a;
}
.field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin: 15px 0 8px;
}
.field-hint {
  font-size: 10px;
  color: #9aa38f;
  margin: 8px 0;
  line-height: 1.7;
}
textarea,
input[type=text] {
  width: 100%;
  background: #fbfcf9;
  border: 1px solid #e0e6d8;
  border-radius: 8px;
  color: #374e39;
  padding: 12px;
  font-size: 12px;
  line-height: 1.7;
  resize: vertical;
}
textarea {
  min-height: 120px;
}
input:focus,
textarea:focus {
  outline: 2px solid #84aa7a;
  outline-offset: 0;
}
.tag-row {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin: 9px 0;
}
.tag-row button {
  font-size: 10px;
  background: #f3f5ef;
  color: #7e9073;
  border: 1px solid #e9eee2;
  padding: 5px 8px;
  border-radius: 20px;
}
.full {
  width: 100%;
  margin-top: 14px;
}
.secondary {
  background: #f4f6ef;
  color: #5b7250;
  border: 1px solid #dde5d4;
  padding: 10px 14px;
  border-radius: 7px;
  font-size: 11px;
}
.panel-note {
  font-size: 10px;
  line-height: 1.8;
  color: #95a18b;
  display: block;
  margin-top: 15px;
}
.empty {
  padding: 30px 0;
  text-align: center;
  color: #8a9880;
  font-size: 12px;
  line-height: 1.8;
}
.task-card {
  background: #fbfcf9;
  border: 1px solid #e5eadf;
  border-radius: 10px;
  margin-bottom: 10px;
  padding: 14px;
  text-align: left;
  width: 100%;
  color: #3c573c;
  display: block;
}
.task-card strong {
  display: block;
  font-size: 12px;
  margin: 9px 0;
  line-height: 1.5;
}
.task-card small {
  font-size: 10px;
  color: #98a18c;
}
.badge {
  display: inline-block;
  font-size: 9px;
  background: #edf2e7;
  color: #76915e;
  border-radius: 4px;
  padding: 4px 7px;
}
.badge.waiting {
  color: #a18438;
  background: #faf1d8;
}
.result {
  font-size: 12px;
  line-height: 1.9;
  white-space: pre-wrap;
  background: #f8faf4;
  border: 1px solid #e6ecde;
  border-radius: 8px;
  padding: 15px;
  color: #607253;
}
.task-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.task-actions button {
  flex: 1;
}
.bottom-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 17px;
  border: 1px solid #e6eade;
  border-radius: 10px;
  background: #fff;
  padding: 16px 19px;
  gap: 15px;
}
.bottom-strip > div:first-child {
  display: flex;
  gap: 10px;
  align-items: center;
}
.tiny-mark {
  background: #f3f5e9;
  color: #98aa68;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 20px;
}
.bottom-strip p {
  margin: 0;
}
.bottom-strip strong {
  font-size: 11px;
  font-weight: 600;
}
.bottom-strip small {
  font-size: 9px;
  color: #9ba38e;
  display: block;
  margin-top: 5px;
}
.bottom-strip > button {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: #fbfcf7;
  border: 1px solid #edf0e6;
  border-radius: 7px;
  padding: 10px 14px;
  min-width: 245px;
  color: #536849;
}
.bottom-strip > button > span:last-child {
  margin-left: auto;
  color: #9cac8e;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.amber {
  background: #c5a360;
}
.flow {
  display: flex;
  gap: 10px;
  font-size: 9px;
  color: #a8b29b;
}
.flow strong {
  font-size: 9px;
  color: #6a8257;
}
.flow b {
  font-weight: 400;
}
footer {
  display: flex;
  justify-content: space-between;
  color: #a8b09d;
  font-size: 9px;
  padding: 15px 1px;
}
.toast {
  position: fixed;
  bottom: 26px;
  left: calc(50% + 100px);
  transform: translateX(-50%) translateY(15px);
  background: #2d5442;
  color: #fff;
  border-radius: 9px;
  padding: 12px 20px;
  font-size: 12px;
  box-shadow: var(--shadow);
  opacity: 0;
  transition: .2s;
  pointer-events: none;
  z-index: 10;
  max-width: 80%;
  line-height: 1.6;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.muted {
  color: #99a38f;
  font-size: 11px;
  line-height: 1.8;
}
.help-list {
  padding-left: 17px;
  font-size: 12px;
  line-height: 2.1;
  color: #6f8163;
}
.storage-warning {
  color: #a55e32;
}
.setting-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #edf0e6;
}
.setting-row div {
  flex: 1;
}
.setting-row strong {
  font-size: 12px;
}
.setting-row small {
  display: block;
  font-size: 10px;
  color: #9aa58d;
  margin-top: 4px;
}
.setting-row button {
  background: #f0f4e9;
  border-radius: 6px;
  color: #6d8459;
  font-size: 10px;
  padding: 7px 9px;
}
@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@media (min-height: 950px) {
  .sidebar-note {
    margin-top: 35px;
  }
}
@media (max-width: 1250px) {
  main {
    padding: 0 24px;
  }
  .flow {
    display: none;
  }
  .office-heading h1 {
    font-size: 24px;
  }
  .sidebar {
    width: 215px;
  }
  main {
    margin-left: 215px;
  }
}
@media (max-width: 950px) {
  .sidebar {
    width: 178px;
    padding: 23px 12px;
  }
  .brand {
    padding: 0 5px;
    font-size: 16px;
  }
  .workspace {
    font-size: 10px;
  }
  .sidebar-note {
    display: none;
  }
  main {
    margin-left: 178px;
    padding: 0 18px;
  }
  .office-heading {
    align-items: flex-start;
  }
  .office-heading h1 {
    font-size: 21px;
  }
  .office-heading p {
    font-size: 10px;
  }
  .office-heading .primary {
    font-size: 10px;
    padding: 10px;
  }
  .office-shell {
    height: 520px;
  }
  .bottom-strip {
    padding: 12px;
    gap: 8px;
  }
  .bottom-strip > button {
    min-width: 210px;
  }
  .prototype {
    font-size: 8px;
  }
  .map-label {
    display: none;
  }
  .drawer {
    width: 340px;
  }
}
@media (max-width: 650px) {
  .sidebar {
    position: relative;
    width: 100%;
    height: 68px;
    padding: 12px 16px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar .brand {
    font-size: 15px;
  }
  .brand .logo {
    width: 33px;
    height: 33px;
    font-size: 28px;
  }
  .brand small {
    font-size: 8px;
  }
  .workspace,
  .sidebar .section-title,
  #teamList,
  .sidebar-note,
  .profile {
    display: none;
  }
  nav {
    display: flex;
    padding: 0;
    gap: 2px;
  }
  .nav {
    font-size: 10px;
    padding: 8px;
    margin: 0;
    gap: 2px;
    white-space: nowrap;
  }
  .nav span {
    font-size: 15px;
    width: 17px;
  }
  .nav kbd,
  .nav b {
    display: none;
  }
  main {
    margin: 0;
    padding: 0 14px;
  }
  header {
    height: 47px;
  }
  .crumb {
    font-size: 9px;
  }
  .top-right {
    gap: 8px;
  }
  .prototype {
    padding: 4px 6px;
  }
  .office-heading {
    padding: 21px 0 19px;
  }
  .eyebrow {
    font-size: 7px;
  }
  .office-heading h1 {
    font-size: 21px;
  }
  .office-heading p {
    max-width: 220px;
    line-height: 1.8;
  }
  .office-heading .primary {
    padding: 9px;
    font-size: 9px;
  }
  .office-shell {
    height: 520px;
    min-height: 0;
    border-radius: 12px;
  }
  .map-top {
    padding: 16px 14px;
  }
  .map-top em {
    font-size: 8px;
  }
  .map-scroll {
    padding: 55px 0 40px;
    overflow: auto;
    display: block;
  }
  #room {
    min-width: 670px;
    width: 670px;
    height: 420px;
    transform-origin: 0 center;
  }
  .map-bottom {
    padding: 12px;
    font-size: 9px;
  }
  .map-bottom > span {
    max-width: 165px;
    line-height: 1.5;
  }
  .drawer {
    width: calc(100% - 24px);
    top: 82px;
  }
  .drawer-head {
    padding: 17px;
  }
  .drawer #drawerBody {
    padding: 17px;
  }
  .return-office {
    top: 45px;
    left: 13px;
  }
  .bottom-strip {
    align-items: stretch;
    flex-direction: column;
  }
  .bottom-strip small {
    font-size: 9px;
  }
  .bottom-strip > button {
    width: 100%;
  }
  footer {
    font-size: 8px;
    gap: 12px;
    line-height: 1.6;
  }
  .toast {
    left: 50%;
    font-size: 11px;
  }
  .drawer h2 {
    font-size: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
.sidebar {
  overflow-y: auto;
  scrollbar-width: thin;
}
.team-info {
  min-width: 0;
}
.team-info strong,
.team-info small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.office-heading p,
.field-hint,
.panel-note,
.muted {
  color: #6e7e65;
}
.svg-subtitle {
  fill: #6c7d5e;
}
.map-bottom {
  color: #647659;
}
.section-title,
.team-info small {
  color: #75816e;
}
.eyebrow {
  color: #718365;
}
.drawer-head,
.drawer #drawerBody {
  scrollbar-color: #cbd7bf transparent;
}
@media (max-height: 940px) and (min-width: 651px) {
  .sidebar-note {
    display: none;
  }
  .profile {
    margin-top: auto;
  }
  .sidebar {
    padding-top: 24px;
  }
}
.heading-actions {
  display: flex;
  gap: 9px;
  align-items: center;
}
.office-heading {
  padding: 20px 0;
}
.office-heading h1 {
  font-size: 25px;
}
.office-shell {
  height: calc(100vh - 295px);
  min-height: 610px;
  max-height: 1050px;
  background: #dbe1df;
  border-color: #c6cfcc;
}
.map-scroll {
  padding: 45px 5px 56px;
  overflow: hidden;
  touch-action: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
#room {
  min-height: 0;
  width: 100%;
  height: 100%;
  transform: none !important;
  transition: none;
  min-width: 0;
}
#room .office-svg {
  max-height: none;
}
.pixel-asset,
.pixel-portrait image {
  image-rendering: pixelated;
}
.actor-image image,
.pixel-portrait image {
  filter: brightness(1.16) saturate(1.04);
}
.pixel-portrait svg {
  width: 30px;
  height: 42px;
  image-rendering: pixelated;
}
.pixel-portrait {
  background: #e7ece7 !important;
  overflow: hidden;
}
.member-card .pixel-portrait svg {
  width: 34px;
  height: 48px;
}
.team-row {
  padding: 10px 8px;
}
.team-info strong {
  font-size: 12px;
}
.team-info small {
  font-size: 10px;
  max-width: 145px;
}
.team-state {
  font-size: 9px;
  font-weight: 400;
  margin-left: 3px;
}
.world-character {
  cursor: default;
  pointer-events: none;
}
.actor-hit { pointer-events: all; cursor: pointer; }
.world-character:has(.actor-hit:focus-visible) .actor-ring,
.world-character:has(.actor-hit:hover) .actor-ring {
  stroke: #f5c96e;
  stroke-width: 4;
}
.bubble-text {
  font-size: 10px;
  fill: #655431;
  font-weight: 600;
}
.desk-plaque rect {
  fill: #f7f3e7;
  stroke: #9eaa93;
  stroke-width: 1.5;
}
.desk-plaque text {
  fill: #405449;
  font-size: 10px;
  font-weight: 700;
}
.room-name text {
  font-size: 11px;
  fill: #f5f5ee;
  letter-spacing: .4px;
}
.meeting-table {
  cursor: pointer;
  outline: none;
}
.meeting-table:hover > rect:nth-of-type(2),
.meeting-table:focus-visible > rect:nth-of-type(2) {
  stroke: #218451;
  stroke-width: 5;
  filter: drop-shadow(0 0 5px #65ae74);
}
.world-hover-label {
  opacity: 0;
  visibility: hidden;
}
[data-library]:hover + .world-hover-label,
[data-library]:focus-visible + .world-hover-label,
.meeting-table:hover + .world-hover-label,
.meeting-table:focus-visible + .world-hover-label,
.board-object:hover + .world-hover-label,
.board-object:focus-visible + .world-hover-label,
.director-inbox:hover + .world-hover-label,
.director-inbox:focus-visible + .world-hover-label {
  opacity: 1;
  visibility: visible;
}
.space-jump {
  position: absolute;
  bottom: 13px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  padding: 4px;
  gap: 3px;
  background: #f9fbf6;
  border: 1px solid #bfcac1;
  border-radius: 8px;
  z-index: 2;
  box-shadow: 0 4px 12px #3546380a;
}
.space-jump button {
  font-size: 10px;
  color: #4e6658;
  padding: 7px 12px;
  background: none;
  border-radius: 4px;
  white-space: nowrap;
}
.space-jump button:hover {
  background: #e4ece5;
}
.map-bottom > span {
  max-width: 190px;
  font-size: 9px;
}
.map-top {
  color: #41574e;
}
.map-label {
  color: #6e7e74;
}
.review-count {
  padding: 7px 12px;
  font-size: 11px;
  border: 1px solid #e5d4aa;
  border-radius: 6px;
  background: #fbf4e2;
  color: #947136;
}
.drawer {
  width: 380px;
}
.review-route {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  margin: 15px 0;
}
.review-route > span {
  width: 100%;
  font-size: 11px;
  color: #798475;
}
.review-route button {
  font-size: 10px;
}
.room-card {
  border: 1px solid #e1e8db;
  border-radius: 8px;
  background: #f5f8f0;
  padding: 16px;
  margin-bottom: 18px;
}
.room-card > span {
  font-size: 10px;
  color: #80916f;
}
.room-card strong {
  display: block;
  font-size: 15px;
  line-height: 1.6;
  margin-top: 7px;
}
.room-card p {
  font-size: 11px;
  line-height: 1.7;
  color: #7c8a70;
  margin: 8px 0 0;
}
.meeting-members {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.meeting-check {
  border: 1px solid #e3e8dc;
  border-radius: 7px;
  padding: 10px 7px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 11px;
}
.meeting-check .mini-avatar {
  width: 24px;
  height: 32px;
  flex-shrink: 0;
}
.meeting-check .mini-avatar svg {
  width: 24px;
  height: 32px;
}
.meeting-check input {
  accent-color: #47805f;
  width: 13px;
  margin: 0;
}
.meeting-check small {
  display: block;
  font-size: 9px;
  color: #859179;
  margin-top: 4px;
}
.meeting-check.unavailable {
  opacity: .55;
  cursor: default;
}
.meeting-check:has(input:checked) {
  border-color: #7a9d70;
  background: #f0f7ea;
}
.assignment {
  display: block;
  margin: 12px 0;
}
.assignment > span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 6px;
}
.assignment input {
  font-size: 11px;
}
.bottom-strip {
  margin-top: 12px;
  padding: 12px 16px;
}
.drawer #drawerBody {
  scrollbar-width: thin;
}
.return-office {
  top: 51px;
}
.world-svg {
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
.world-svg:active {
  cursor: grabbing;
}
.world-svg text {
  pointer-events: none;
}
.drawer .panel-note {
  font-size: 10px;
}
.sidebar {
  width: 240px;
}
main {
  margin-left: 240px;
}
.nav {
  padding: 10px 13px;
}
nav {
  padding: 20px 0 15px;
}
.section-title {
  padding-bottom: 8px;
}
@media (max-width: 1100px) {
  .sidebar {
    width: 210px;
  }
  main {
    margin-left: 210px;
    padding: 0 20px;
  }
  .team-info small {
    max-width: 120px;
  }
  .space-jump button {
    padding: 7px;
  }
  .office-heading h1 {
    font-size: 23px;
  }
  .heading-actions {
    flex-direction: column;
    gap: 5px;
  }
  .heading-actions button {
    width: 100%;
    padding: 9px 12px;
  }
  .map-bottom > span {
    max-width: 140px;
    font-size: 8px;
  }
  .drawer {
    width: 350px;
  }
}
@media (max-width: 700px) {
  .sidebar {
    width: 100%;
  }
  main {
    margin: 0;
  }
  .heading-actions .secondary {
    font-size: 10px;
  }
  .office-heading h1 {
    font-size: 19px;
  }
  .office-heading p {
    max-width: 240px;
    font-size: 10px;
    line-height: 1.6;
  }
  .prototype {
    display: none;
  }
  .office-shell {
    min-height: 590px;
    height: calc(100vh - 230px);
  }
  .space-jump {
    bottom: 48px;
  }
  .map-scroll {
    padding: 45px 0 90px;
  }
  .map-bottom > span {
    max-width: 200px;
  }
  .drawer {
    top: 83px;
    width: calc(100% - 24px);
    bottom: 95px;
  }
  .map-label {
    display: none;
  }
  .office-heading {
    gap: 6px;
  }
  .meeting-check {
    padding: 8px 4px;
  }
  .meeting-members {
    gap: 5px;
  }
  .world-svg {
    min-width: 0;
  }
  .map-top {
    font-size: 10px;
  }
  #room {
    min-width: 0;
    width: 100%;
    height: 100%;
  }
}
.pm-report-intro {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}
.pm-report-intro .mini-avatar {
  width: 46px;
  height: 48px;
}
.pm-report-intro span {
  font-size: 10px;
  color: #899780;
}
.pm-report-intro strong {
  display: block;
  font-size: 16px;
  margin-top: 7px;
  line-height: 1.5;
}
.report-summary {
  border: 1px solid #dce5d5;
  background: #f4f7ef;
  border-radius: 9px;
  padding: 17px;
}
.report-section-label {
  font-size: 10px;
  color: #819370;
  font-weight: 600;
}
.report-summary p {
  font-size: 12px;
  line-height: 1.8;
  margin: 5px 0 16px;
}
.report-summary p:last-child {
  margin-bottom: 0;
}
.report-details {
  border: 1px solid #e2e8db;
  border-radius: 7px;
  padding: 12px;
  margin: 16px 0;
}
.report-details summary {
  font-size: 11px;
  font-weight: 600;
  color: #6b805c;
  cursor: pointer;
  line-height: 1.7;
}
.report-item {
  padding: 13px 0;
  border-bottom: 1px solid #e4e9de;
}
.report-item:last-child {
  border: 0;
}
.report-item strong {
  font-size: 12px;
  display: block;
  line-height: 1.6;
}
.report-item small {
  font-size: 10px;
  color: #859477;
  display: block;
  margin: 5px 0 9px;
}
.report-item .result {
  margin-top: 9px;
}
.drawer .task-actions button {
  font-size: 11px;
  padding: 12px 8px;
}
.team-info small {
  max-width: 148px;
}
.board-dialog {
  width: min(1280px, 94vw);
  height: 90vh;
  max-width: none;
  max-height: none;
  padding: 0;
  border: 1px solid #bccbb6;
  border-radius: 14px;
  box-shadow: 0 20px 90px #172c3c44;
  overflow: hidden;
}
.board-dialog::backdrop {
  background: #20352c66;
}
.board-dialog[open] {
  display: flex;
  flex-direction: column;
}
.board-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: #fff;
  border-bottom: 1px solid #e3e9df;
}
.board-heading strong {
  font-size: 17px;
}
.board-heading span {
  font-size: 12px;
  color: #73816e;
  margin-left: 14px;
}
.board-heading button {
  background: #eff4ec;
  border: 1px solid #d3dfcd;
  border-radius: 7px;
  padding: 9px 15px;
  cursor: pointer;
}
.board-dialog iframe {
  width: 100%;
  flex: 1;
  border: 0;
  background: #fff;
}
.board-object {
  cursor: pointer;
}
.board-object:focus-visible {
  outline: 3px solid #5c9779;
}
.board-object:hover .board-screen {
  stroke: #4b8967;
  stroke-width: 5;
}
.office-heading .eyebrow {
  display: none;
}
.brand .logo {
  font-size: 23px;
}
.sidebar-widget {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid #e2e9dd;
  background: #f7faf5;
  border-radius: 9px;
  padding: 9px 11px;
  margin: 5px 0;
  cursor: pointer;
  color: #3b5544;
}
.sidebar-widget span {
  display: block;
  font-size: 10px;
  color: #7b8a7b;
}
.sidebar-widget strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
  font-size: 11px;
}
.sidebar-widget:hover,
.sidebar-widget:focus-visible {
  border-color: #4e9c70;
  background: #edf7ed;
}
.office-name {
  font: inherit;
  font-weight: 700;
  border: 0;
  background: none;
  padding: 0;
  cursor: text;
  text-align: left;
  color: inherit;
}
#officeNameInput {
  width: 125px;
  font-size: 13px;
}
.wide-view {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 3;
  padding: 7px 10px;
  border: 1px solid #b8c8bb;
  background: #f5faf5;
  border-radius: 7px;
  cursor: pointer;
  font-size: 11px;
}
.map-scroll {
  transition: width .2s ease;
}
.office-shell[data-panel] .map-scroll {
  width: calc(100% - min(480px, 43%));
  justify-content: center;
}
.office-shell[data-panel=director] .map-scroll,
.office-shell[data-panel=library] .map-scroll,
.office-shell[data-panel=result] .map-scroll {
  width: calc(100% - min(690px, 58%));
}
.drawer {
  width: min(470px, 43%);
  max-width: none;
}
.office-shell[data-panel=director] .drawer,
.office-shell[data-panel=library] .drawer,
.office-shell[data-panel=result] .drawer {
  width: min(680px, 58%);
}
.drawer #drawerBody {
  font-size: 13px;
  line-height: 1.6;
}
.drawer textarea {
  min-height: 145px;
  font-size: 13px;
  line-height: 1.65;
}
.drawer .result {
  font-size: 12px;
  line-height: 1.7;
}
.office-shell[data-panel=director] .task-actions {
  position: sticky;
  bottom: -12px;
  background: #fff;
  padding: 12px 0;
  box-shadow: 0 -10px 20px #fff;
}
.library-section {
  margin: 18px 0;
  padding: 14px;
  border: 1px solid #e0e9df;
  border-radius: 10px;
  background: #fafcf9;
}
.library-section h3 {
  font-size: 14px;
  margin: 0 0 12px;
}
.library-section label {
  display: block;
  margin: 10px 0 5px;
  font-size: 11px;
  font-weight: 600;
}
.library-section textarea {
  min-height: 125px;
}
.library-item {
  padding: 12px 0;
  border-top: 1px solid #dce5da;
}
.library-item summary {
  cursor: pointer;
  font-weight: 600;
}
.library-item small,
.activity-row small {
  display: block;
  color: #748777;
  margin-top: 4px;
}
.activity-row {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid #e2e8df;
  background: transparent;
  padding: 12px;
  cursor: pointer;
}
.activity-row:hover {
  background: #eff6ec;
}
.office-context {
  position: absolute;
  z-index: 10;
  width: 180px;
  background: #fff;
  border: 1px solid #c9daca;
  border-radius: 9px;
  padding: 5px;
  box-shadow: 0 12px 32px #203b3260;
}
.office-context button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
}
.office-context button:hover,
.office-context button:focus-visible {
  background: #e9f4e8;
}
.world-character:has(.actor-hit:hover) .actor-ring,
.world-character:has(.actor-hit:focus-visible) .actor-ring,
[data-library]:hover .interactive-outline,
[data-library]:focus-visible .interactive-outline,
.board-object:hover .board-screen,
.board-object:focus-visible .board-screen {
  stroke: #218451 !important;
  stroke-width: 5 !important;
  opacity: 1 !important;
  filter: drop-shadow(0 0 5px #65ae74);
}
[data-library],
.board-object,
.director-inbox {
  cursor: pointer;
}
body.office-wide .sidebar {
  transform: translateX(-100%);
}
body.office-wide main {
  margin-left: 0;
}
body.office-wide .office-shell[data-panel] .map-scroll {
  width: calc(100% - min(470px, 40%));
}
@media (max-width: 1150px) {
  .sidebar {
    width: 205px;
  }
  main {
    margin-left: 205px;
  }
  .office-shell[data-panel] .map-scroll {
    width: calc(100% - 370px);
  }
  .drawer {
    width: 360px;
  }
  .office-shell[data-panel=director] .drawer,
  .office-shell[data-panel=library] .drawer,
  .office-shell[data-panel=result] .drawer {
    width: min(530px, 54%);
  }
  .office-shell[data-panel=director] .map-scroll,
  .office-shell[data-panel=library] .map-scroll,
  .office-shell[data-panel=result] .map-scroll {
    width: 46%;
  }
}
@media (max-width: 850px) {
  .sidebar {
    width: 68px;
    padding: 16px 6px;
  }
  .sidebar .workspace,
  .sidebar .section-title,
  .sidebar #teamList,
  .sidebar .sidebar-note,
  .sidebar .profile,
  .sidebar .sidebar-work,
  .sidebar .brand div,
  .sidebar nav .nav kbd,
  .sidebar nav .nav b {
    display: none;
  }
  .sidebar .brand {
    justify-content: center;
  }
  .sidebar nav .nav {
    font-size: 0;
    padding: 14px;
  }
  .sidebar nav .nav span {
    font-size: 20px;
  }
  main {
    margin-left: 68px;
    padding: 0 12px;
  }
  .office-shell[data-panel] .map-scroll,
  .office-shell[data-panel=director] .map-scroll,
  .office-shell[data-panel=library] .map-scroll,
  .office-shell[data-panel=result] .map-scroll {
    width: 100%;
  }
  .office-shell[data-panel] .drawer {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 8px;
    top: auto;
    width: auto;
    height: min(72%, 650px);
    max-width: none;
  }
  .office-shell {
    min-height: 610px;
  }
  .office-heading p {
    display: none;
  }
}
@media (max-width: 640px) {
  .sidebar {
    position: relative;
    width: 100%;
    height: 60px;
    transform: none !important;
    flex-direction: row;
  }
  .sidebar nav {
    display: flex;
    padding: 0;
  }
  .sidebar nav .nav {
    width: 46px;
  }
  main,
  body.office-wide main {
    margin: 0;
    padding: 0 10px;
  }
  .office-shell {
    height: calc(100dvh - 165px);
    min-height: 500px;
  }
  .office-shell[data-panel] .drawer {
    height: 78%;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 13px 13px 0 0;
  }
  .wide-view {
    right: 8px;
    font-size: 10px;
  }
  .map-scroll {
    padding: 45px 0 70px;
  }
  .office-heading {
    margin: 6px 0;
  }
  .office-heading h1 {
    font-size: 20px;
  }
}
.drawer input[type=text],
.drawer select {
  width: 100%;
  min-height: 39px;
  padding: 9px 11px;
  border: 1px solid #d8e3d7;
  border-radius: 8px;
  background: #fbfcf9;
  color: var(--ink);
  font-size: 13px;
}
.drawer input[type=file] {
  max-width: 100%;
  font-size: 12px;
  color: #607363;
}
.drawer .inline-editor {
  margin: 10px 0;
  padding: 12px;
  border: 1px solid #dce8db;
  border-radius: 9px;
  background: #f6faf3;
}
.drawer .inline-editor label {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 600;
}
.drawer .inline-editor .task-actions {
  margin-top: 9px;
}
.source-picker {
  margin: 14px 0;
  padding: 10px 12px;
  border: 1px solid #dce8db;
  border-radius: 8px;
}
.source-picker legend {
  padding: 0 5px;
  font-size: 12px;
  font-weight: 650;
}
.source-picker label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 12px;
}
.source-picker input {
  accent-color: var(--green);
}
.source-picker small {
  margin-left: auto;
  color: var(--muted);
}
@media (max-width: 640px) {
  .drawer #drawerBody {
    padding: 16px;
  }
  .drawer-head {
    padding: 17px;
  }
  .office-shell[data-panel] .drawer {
    height: 80%;
  }
}

/* Project navigation and document workspace. */
.project-nav{margin:4px 0 9px;border:1px solid #e1e9df;border-radius:10px;background:#f8fbf7}
.project-nav-head{display:flex;align-items:center;justify-content:space-between;padding:4px 6px}
.project-nav-head button{background:transparent;color:#506a55;padding:6px;font-size:12px}
.project-nav-head #projectToggle{flex:1;text-align:left;font-weight:700}
.project-nav-head #projectCreateShortcut{font-size:19px;line-height:1}
#projectList{padding:0 6px 7px;max-height:170px;overflow:auto}
.project-row{display:flex;align-items:center;gap:3px;margin:3px 0;border-radius:7px}
.project-row.active{background:#e8f3e8}
.project-row>.project-select{min-width:0;flex:1;padding:8px 6px;background:transparent;text-align:left;color:#3d5945;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.project-row>.project-menu{padding:7px;background:transparent;color:#617d64}
.project-row input{width:100%;padding:5px;font-size:11px}
.project-nav .project-empty{padding:7px;font-size:11px;color:#748777}
.library-intro{line-height:1.6;color:#64796a}
.project-overview{display:flex;align-items:center;gap:10px;margin:17px 0 8px}
.project-overview strong{font-size:17px;flex:1}
.project-overview button{font-size:11px}
.project-overview input{max-width:190px;min-width:0}
.project-switch-label{font-size:11px;color:#637c6a}
#libraryProjectSelect{margin:5px 0 3px;width:100%}
.library-tabs{display:flex;gap:7px;overflow:auto;margin:18px 0 10px;border-bottom:1px solid #dbe7dc}
.library-tabs button{background:transparent;padding:10px 12px;color:#69806d;white-space:nowrap}
.library-tabs button.active{border-bottom:3px solid #397d5a;color:#276747;font-weight:700}
.library-drop{display:block;border:2px dashed #a9c4ad;border-radius:11px;padding:19px;text-align:center;background:#f6faf5;color:#59765f;cursor:pointer}
.library-drop.drag-over{border-color:#27814e;background:#e5f6e9;box-shadow:inset 0 0 0 2px #a2d8ab}
.library-drop strong,.library-drop small{display:block;margin:4px}
.library-drop input{display:none}
.library-item summary{list-style:none;display:flex;align-items:center;gap:8px}
.library-item summary::-webkit-details-marker{display:none}
.library-item summary::before{content:'▸';color:#679172}
.library-item[open] summary::before{content:'▾'}
.library-item summary small{margin-left:auto}
.library-item .item-actions{display:flex;gap:7px;margin:12px 0 0;flex-wrap:wrap}
.library-item .item-actions button{padding:7px 9px;font-size:11px}
.library-empty{padding:22px;color:#7e9381;text-align:center}
.export-menu{display:flex;gap:6px;flex-wrap:wrap;margin:9px 0}
.export-menu button{border:1px solid #cbdccb;border-radius:6px;padding:7px 10px;background:white;color:#356d4e;font-size:11px}
.library-instructions{min-height:90px!important}
.projects-nav{display:none}
@media(max-width:850px){.projects-nav{display:block}}
.library-section .field-hint{line-height:1.5}
.seat-front{display:none;pointer-events:none}
.world-character.seated .seat-front{display:block}
.seat-front > g{display:none}
.world-character.seated[data-seat-facing="up"] .seat-up{display:block}
.world-character.seated ellipse{opacity:.1}

/* The board stays beside the office; expansion is an explicit choice. */
.board-panel{position:absolute;top:12px;bottom:12px;left:12px;width:min(670px,57%);z-index:5;display:flex;flex-direction:column;border:1px solid #d8e5d7;border-radius:13px;background:#fff;box-shadow:var(--shadow);overflow:hidden}
.board-panel-head{padding:13px 15px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e5ede4}
.board-panel-head h2{margin:3px 0 0;font-size:17px}
.board-panel-head>div:last-child{display:flex;gap:7px;align-items:center}
.board-panel iframe{border:0;width:100%;min-height:0;flex:1;background:#fff}
.office-shell[data-board] .map-scroll{width:42%;margin-left:auto}
.board-panel.expanded{width:calc(100% - 24px)}
@media(max-width:850px){
  .office-shell[data-board] .map-scroll{width:100%}
  .board-panel{top:auto;bottom:8px;left:8px;right:8px;width:auto;height:min(72%,650px)}
  .board-panel.expanded{width:auto;height:calc(100% - 16px)}
}
@media(max-width:640px){
  .board-panel{left:0;right:0;bottom:0;height:80%;border-radius:13px 13px 0 0}
  .board-panel.expanded{height:100%}
}

/* The review tray is a separate, clickable object beside the director's desk. */
.director-inbox { cursor: pointer; }
.director-inbox .tray-papers { display: none; }
.director-inbox.has-papers .tray-papers { display: block; }
.director-inbox:hover .inbox-outline,
.director-inbox:focus-visible .inbox-outline {
  stroke: #3d9368;
  fill: #8ccea329;
}
.mobile-dashboard,
.mobile-review-nav,
.mobile-more,
.mobile-map-actions,
.mobile-map-gesture-hint { display: none; }

@media (max-width: 640px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .sidebar {
    position: fixed;
    inset: auto 0 0;
    z-index: 30;
    height: calc(68px + env(safe-area-inset-bottom));
    padding: 3px 8px env(safe-area-inset-bottom);
    border-top: 1px solid #dce6da;
    border-right: 0;
    box-shadow: 0 -6px 24px #263e3214;
    justify-content: center;
  }
  .sidebar .brand,
  .sidebar #teamNav { display: none; }
  .sidebar nav { width: 100%; justify-content: space-around; gap: 3px; }
  .sidebar nav .nav {
    flex: 1;
    width: auto;
    min-width: 0;
    min-height: 55px;
    padding: 5px 2px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    font-size: 11px;
    line-height: 1.2;
  }
  .sidebar nav .nav span { font-size: 19px; }
  .mobile-review-nav { display: flex; }
  main, body.office-wide main { margin: 0; padding: 0 14px; }
  header { min-height: 49px; }
  header .review-count { display: none; }
  .office-heading { padding: 6px 0 11px; align-items: flex-end; }
  .office-heading h1 { font-size: 21px; margin-bottom: 0; }
  .heading-actions { flex-direction: row; }
  .heading-actions button { width: auto; padding: 9px; font-size: 11px; }
  .mobile-dashboard { display: block; margin: 0 0 12px; }
  .mobile-dashboard-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
  .mobile-dashboard-head strong { font-size: 13px; }
  .mobile-dashboard-head button { background: transparent; color: #43745b; font-size: 11px; padding: 8px; }
  .mobile-dashboard-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .mobile-dashboard-cards button {
    min-width: 0;
    min-height: 94px;
    text-align: left;
    background: #fff;
    color: #29483a;
    border: 1px solid #dce7da;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 4px 16px #274b360a;
  }
  .mobile-dashboard-cards button:first-child { background: #f1f7ed; }
  .mobile-dashboard-cards span,
  .mobile-dashboard-cards small { display: block; font-size: 10px; color: #66816b; }
  .mobile-dashboard-cards strong { display: block; font-size: 22px; margin: 7px 0 4px; }
  .office-shell { height: min(52dvh, 480px); min-height: 390px; max-height: 500px; }
  .map-scroll { display: flex; padding: 43px 2px 68px; overflow: hidden; }
  .map-top { padding: 10px 12px; }
  .map-top em { display: none; }
  .mobile-map-actions { display: flex; align-items: center; gap: 5px; pointer-events: auto; }
  .mobile-map-expand {
    min-height: 36px;
    padding: 0 10px;
    background: #fffdf8;
    color: #3b6852;
    border: 1px solid #bdcdbd;
    border-radius: 8px;
    font-size: 11px;
  }
  .mobile-more {
    display: block;
    pointer-events: auto;
    background: #fffdf8;
    color: #3b6852;
    border: 1px solid #bdcdbd;
    border-radius: 8px;
    min-width: 38px;
    min-height: 36px;
    font-size: 24px;
    line-height: 1;
  }
  .wide-view { display: none; }
  .map-bottom { padding: 7px 9px; }
  .map-bottom > span { display: none; }
  .map-bottom > div { margin-left: auto; }
  .map-bottom button { min-width: 38px; min-height: 36px; }
  .space-jump { left: 8px; right: 8px; bottom: 49px; transform: none; justify-content: space-around; }
  .space-jump button { flex: 1; padding: 9px 3px; font-size: 10px; }
  .bottom-strip, footer { display: none; }
  .office-shell[data-panel] .drawer,
  .office-shell[data-board] .board-panel,
  .board-panel.expanded {
    position: fixed;
    z-index: 25;
    inset: 0 0 calc(68px + env(safe-area-inset-bottom));
    width: 100%;
    height: auto;
    max-width: none;
    max-height: none;
    border-radius: 0;
    animation: none;
  }
  .office-shell[data-panel] .drawer { background: #fff; }
  body.mobile-map-expanded { overflow: hidden; }
  .office-shell.map-expanded {
    position: fixed;
    inset: 0 0 calc(68px + env(safe-area-inset-bottom));
    z-index: 24;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    border-radius: 0;
  }
  .office-shell.map-expanded .map-scroll { padding-top: 55px; padding-bottom: 95px; }
  .office-shell.map-expanded .mobile-map-gesture-hint {
    display: block;
    position: absolute;
    top: calc(50% - 160px);
    left: 0;
    right: 0;
    z-index: 1;
    text-align: center;
    pointer-events: none;
    color: #4f695c;
    font-size: 11px;
  }
  .board-panel-head { padding: 10px 14px; }
  .board-panel-head #boardExpand { display: none; }
  .return-office { display: none; }
  .toast { bottom: calc(82px + env(safe-area-inset-bottom)); left: 50%; width: min(92%, 420px); }
  #officeHeadingName { cursor: pointer; }
}

/* Show the PM selection ring only during intentional interaction. */
.world-character[data-person="pm"] .actor-ring{opacity:0}
.world-character[data-person="pm"]:has(.actor-hit:hover) .actor-ring,
.world-character[data-person="pm"]:has(.actor-hit:focus-visible) .actor-ring{opacity:1}

/* Calculation fields keep their labels and amounts readable in the side panel. */
.quote-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.quote-fields label,.quote-row label{display:flex;flex-direction:column;gap:5px;min-width:0}
.quote-fields input,.quote-fields select,.quote-row input{width:100%;min-width:0;box-sizing:border-box}
.quote-row{border:1px solid #d6e0d9;border-radius:10px;padding:12px;margin:14px 0}
.quote-row legend{font-size:12px;font-weight:600;color:#425b4e;padding:0 5px}
.quote-row-numbers{display:grid;grid-template-columns:1fr 1fr 1.5fr;gap:8px;margin:10px 0}
.quote-total{padding:14px;margin:14px 0;border-radius:8px;background:#eaf1ec;color:#244438;font-weight:650;line-height:1.8;overflow-wrap:anywhere}
.quote-actions{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}
@media(max-width:420px){.quote-fields{grid-template-columns:1fr}.quote-row-numbers{grid-template-columns:1fr 1fr}.quote-row-numbers label:last-child{grid-column:1/-1}}
