.location-overview-strip {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: -4px 0 18px;
  padding: 12px 15px;
  color: var(--muted);
  background: rgba(255,255,255,.54);
  border: 1px solid var(--line);
  border-radius: 15px;
  font-size: 10px;
}
.location-overview-strip > span { color: var(--green); }
.location-overview-strip strong { color: var(--ink); font-size: 13px; }
.location-overview-strip i { width: 1px; height: 18px; margin: 0 5px; background: var(--line); }
.location-workspace { display: grid; grid-template-columns: minmax(300px,.8fr) minmax(0,1.35fr); gap: 16px; align-items: start; }
.location-tree-panel,.location-detail-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 21px; }
.location-tree-panel { overflow: hidden; }
.location-tree-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 14px; border-bottom: 1px solid var(--line); }
.location-tree-head h2 { margin: 0; font-size: 14px; }
.location-tree-head p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.location-tree-head > button,.location-edit-button { width: 34px; height: 34px; display: grid; place-items: center; color: var(--green); background: #edf1eb; border: 0; border-radius: 11px; cursor: pointer; }
.location-tree { padding: 8px; }
.location-branch { display: contents; }
.location-tree-row { position: relative; width: 100%; display: grid; grid-template-columns: 38px minmax(0,1fr) 20px; align-items: center; gap: 10px; min-height: 58px; padding: 8px 10px 8px calc(10px + var(--location-depth) * 19px); color: var(--ink); text-align: left; background: transparent; border: 0; border-radius: 14px; cursor: pointer; transition: .18s ease; }
.location-tree-row:hover { background: #f7f6f2; }
.location-tree-row.active { background: #edf1eb; box-shadow: inset 0 0 0 1px #dfe7dc; }
.location-tree-line { position: absolute; left: calc(18px + var(--location-depth) * 19px); top: -9px; bottom: 50%; width: 11px; border-left: 1px solid #dedfd9; border-bottom: 1px solid #dedfd9; border-radius: 0 0 0 7px; opacity: calc(min(var(--location-depth),1)); }
.location-tree-row .location-symbol { width: 38px; height: 38px; border-radius: 12px; }
.location-tree-row .location-symbol svg { width: 18px; }
.location-symbol.tone-0 { color: var(--green); background: #e8eee7; }
.location-symbol.tone-1 { color: #9b654f; background: #f5e9e2; }
.location-symbol.tone-2 { color: #52717a; background: #e5eef0; }
.location-tree-copy { min-width: 0; display: grid; gap: 3px; }
.location-tree-copy strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.location-tree-copy small { overflow: hidden; color: var(--muted); font-size: 8.5px; text-overflow: ellipsis; white-space: nowrap; }
.location-tree-arrow { color: #a4a69f; transition: transform .18s ease; }
.location-tree-row.active .location-tree-arrow { color: var(--green); transform: translateX(2px); }
.location-tree-empty { display: grid; justify-items: center; gap: 8px; padding: 38px 15px; color: var(--muted); text-align: center; }
.location-tree-empty span { color: #9ca99f; }
.location-tree-empty p { margin: 0; font-size: 10px; }
.location-detail-panel { min-height: 440px; padding: 22px; }
.location-detail-empty { display: grid; place-items: center; align-content: center; text-align: center; }
.location-detail-empty h2 { margin: 13px 0 5px; font-size: 16px; }
.location-detail-empty p { max-width: 330px; margin: 0 0 18px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.location-detail-illustration { width: 64px; height: 64px; display: grid; place-items: center; color: var(--green); background: #edf1eb; border-radius: 20px; }
.location-detail-head { display: grid; grid-template-columns: 46px 1fr 34px; align-items: center; gap: 12px; }
.location-detail-symbol { width: 46px; height: 46px; display: grid; place-items: center; color: var(--green); background: #e9eee7; border-radius: 15px; }
.location-detail-head h2 { margin: 2px 0 0; font-size: 18px; }
.location-detail-head .eyebrow { margin: 0; }
.location-breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-top: 15px; color: #717873; font-size: 9px; }
.location-breadcrumbs svg { color: #a9ada7; }
.location-description { min-height: 16px; margin: 13px 0 15px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.location-stat-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.location-stat-row > div { display: grid; gap: 2px; padding: 12px; background: #f7f6f2; border: 1px solid #efede7; border-radius: 13px; }
.location-stat-row strong { color: var(--green); font-family: var(--serif); font-size: 18px; }
.location-stat-row span { color: var(--muted); font-size: 8px; }
.location-detail-actions { display: flex; gap: 8px; margin: 15px 0 19px; }
.location-detail-section { padding-top: 16px; border-top: 1px solid var(--line); }
.location-detail-section + .location-detail-section { margin-top: 17px; }
.location-detail-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.location-detail-title h3 { margin: 0; font-size: 12px; }
.location-detail-title > span { min-width: 22px; padding: 3px 6px; color: var(--green); text-align: center; background: #edf1eb; border-radius: 99px; font-size: 8px; }
.location-detail-title > button { color: var(--green); background: none; border: 0; font-size: 9px; cursor: pointer; }
.location-child-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.location-child-grid button { min-width: 0; display: grid; grid-template-columns: 31px minmax(0,1fr); column-gap: 8px; align-items: center; padding: 9px; text-align: left; background: #faf9f6; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.location-child-grid button > span { grid-row: 1 / 3; width: 31px; height: 31px; display: grid; place-items: center; color: var(--green); background: #edf1eb; border-radius: 9px; }
.location-child-grid strong { overflow: hidden; font-size: 9.5px; text-overflow: ellipsis; white-space: nowrap; }
.location-child-grid small { color: var(--muted); font-size: 7.5px; }
.location-item-list { display: grid; gap: 4px; }
.location-item-list > button { display: grid; grid-template-columns: 7px 1fr 15px; align-items: center; gap: 9px; padding: 8px 3px; text-align: left; background: none; border: 0; border-bottom: 1px solid #f0eee8; cursor: pointer; }
.location-item-dot { width: 7px; height: 7px; background: var(--clay); border-radius: 50%; }
.location-item-list > button > span:nth-child(2) { display: grid; gap: 2px; }
.location-item-list strong { font-size: 9.5px; }
.location-item-list small { color: var(--muted); font-size: 7.5px; }
.location-item-list svg { color: #a7aaa4; }
.location-no-items { display: grid; justify-items: center; gap: 6px; padding: 28px 10px 8px; color: var(--muted); text-align: center; }
.location-no-items p { margin: 0; font-size: 9px; }
.location-no-items button { color: var(--green); background: none; border: 0; font-size: 9px; cursor: pointer; }
.location-form-hint { display: flex; gap: 9px; margin-top: 15px; padding: 11px 12px; color: #68736b; background: #f1f4ef; border-radius: 12px; font-size: 9px; line-height: 1.5; }
.location-form-hint svg { flex: none; margin-top: 1px; color: var(--green); }

@media (max-width: 900px) {
  .location-workspace { grid-template-columns: 1fr; }
  .location-detail-panel { min-height: 0; }
}
@media (max-width: 560px) {
  .location-overview-strip { overflow-x: auto; gap: 7px; }
  .location-overview-strip strong,.location-overview-strip small,.location-overview-strip i { flex: none; }
  .location-workspace { gap: 11px; }
  .location-tree-panel,.location-detail-panel { border-radius: 17px; }
  .location-tree-row { min-height: 55px; padding-left: calc(7px + var(--location-depth) * 15px); }
  .location-tree-line { left: calc(14px + var(--location-depth) * 15px); }
  .location-detail-panel { padding: 16px; }
  .location-stat-row > div { padding: 10px 8px; }
  .location-stat-row span { font-size: 7px; }
  .location-detail-actions { display: grid; }
  .location-child-grid { grid-template-columns: 1fr; }
}
